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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct syntax for replacing file path with a string in vbscript

Status
Not open for further replies.

kdjonesmtb2

Technical User
Nov 19, 2012
93
0
0
US
Hello

How can I replace the file path in the code below with a string in vbscript

Set qfile1=fso.CreateTextFile("\\ikanas267\Documents\kgittensjones\My Documents\QTP 834\Text files\" & TextFileName,true,False) 'TextFileName used as a variable so that multiple 834 files can be generated from DataTable

The TextFileName variable works fine

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top