# vbs write file

The solution for “vbs write file” can be found here. The following code will assist you in solving the problem.

Set objFSO=CreateObject(“Scripting.FileSystemObject”)
‘ Write to a file
outFile = “c:\path\to\file.txt”
Set objFile = objFSO.CreateTextFile(outFile,True)
objFile.Write “test” & vbCrLf
objFile.Close
 



Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]