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

IM script to rename file if file exists

Status
Not open for further replies.

barbola

Technical User
Feb 27, 2003
1,132
CA
Code:
Call pFSO.CopyFile(sSourceFile, sDestinationFile, True)

The True at the end means to replace the file if it exists.

Can anyone help me code this if I want it to add an "A" to the end of the filename if it exists?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top