Hello,
I have a vbscript which creates a text file, add some lines of text,
and then tries to save it. The problem is that when I try to save the
file, I get an error stating "bad file name or number" with the
following line of code:
Set objFile = objFSO.CreateTextFile(strPath, True)
objFile.Write(strList)
objFile.Close
strPath is equal to "C:\Program Files\Some App\FILE" where FILE is the
name. The application that I am updating this file for expects it to
be named FILE with no extension. I can only assume that the error is
coming from the fact that vbscript thinks FILE is a directory name. Is
there anyway to do this with a text file with no extension? Thanks for
any help you can offer.
JG