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!

automate copying files to another directory 1

Status
Not open for further replies.

damzi

Programmer
May 3, 2004
66
US
I am using the following cmd in a batch file to automate copying files onto another folder

xcopy D:\FTP_Staging\CISC\Log\*.txt D:\FTP_Staging\CISC\IDX\Archive\/s

How can I overwrite the files without having to be prompted in cmd and add that to my script ?
 
Add a /Y at the end.

xcopy D:\FTP_Staging\CISC\Log\*.txt D:\FTP_Staging\CISC\IDX\Archive\ /s /Y

Pain is stress leaving the body.

DoubleD [bigcheeks]
 
DoubleD - Thanks so much for the fast and correct response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top