I've copied this from a how to script tutorial. I can't get it to run
without the compilation error: 800A0401
It's suppore to be an example of how to write to a file.
I run it at a command prompt in w2k sp4 by typing cscript writeToFile.vbs
This has got to be a simple problem but not so simple for me. My beginner
VBscript book is in the mail. Any ideas?
Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile =
objFSO.OpenTextFile("results.txt", 2, True)
objTextFile.WriteLine("serverName") objTextFile.Close
writeToFile.vbs(2, 57) Microsoft VBScript compilation error: Expected end of
statement