Stephon98caffe
Programmer
Is there something wrong with this code? I get this error message.
' VB Script Document
Dim objFile, strGuyFile, strFilePath
strFilePath = "c:\temp\outofdate.txt"
'opens file
Set objFile = CreateObject("Scripting.FileSystemObject")
'****Invalid procedure call or argument****
Set strGuyFile = objFile.OpenTextFile(strFilePath, True,false)
do while not strGuyFile.AtEndOfStream
line = strGuyFile.ReadLine
Wscript.Echo line
loop
strGuyFile.Close
' VB Script Document
Dim objFile, strGuyFile, strFilePath
strFilePath = "c:\temp\outofdate.txt"
'opens file
Set objFile = CreateObject("Scripting.FileSystemObject")
'****Invalid procedure call or argument****
Set strGuyFile = objFile.OpenTextFile(strFilePath, True,false)
do while not strGuyFile.AtEndOfStream
line = strGuyFile.ReadLine
Wscript.Echo line
loop
strGuyFile.Close