Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fso.OpenTextFile Gives Invalid proc call or Argument error

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hi experts,

I'm using the following code in an ActiveX Task in SQL Server...

It gives a VBScript runtime error at the fso_OpenTextFile stmt. The path to this existing text file is correct.
That's about all I can tell you.

Thanks for any help. John


Dim fso ' File System Object
Dim theFile ' TextStream
Dim sFileText 'String

Set fso = CreateObject("Scripting.FileSystemObject")
'the next line gives error Inv procedure call or argument
Set theFile = fso_OpenTextFile("\\GM\C$\sys\paragon\gm\Files\Outbound\ACB_EnrollmentChanges.txt", ForReading, False)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top