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

Syntax Error in fso.MoveFile 1

Status
Not open for further replies.

JohnBates

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

I'm trying to move a file to another folder.

The file's name will change daily so I derive the file name
by determing the current date....

I get error 'Compilation error: expected end of statement"

I think I've got my quotes messed up..?

Thanks John

fso.MoveFile "\\gm\sys\Paragon\GM\Files\Inbound\\GPWGMPlanworks06\staged\"Test" & char_date & ".txt"" , "\\gm\sys\Paragon\GM\Files\Inbound\\GPWGMPlanworks06\Archived\"
 
fso.MoveFile "\\gm\sys\Paragon\GM\Files\Inbound\\GPWGMPlanworks06\staged\Test" & char_date & ".txt", "\\gm\sys\Paragon\GM\Files\Inbound\\GPWGMPlanworks06\Archived\"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top