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

XXCopy

Status
Not open for further replies.

EliseFreedman

Programmer
Dec 6, 2002
470
GB
im trying to do use the date switch with xcopy to enable me to delete files that are older than 1 day.

So far I have come up with
xxcopy c:\salesinfodata \* /RS /DB#1

I then added a /Y to the end of the line in an attempt to prevent dos asking if I wanted to delete the files.
xxcopy c:\salesinfodata \* /RS /DB#1

this was partially successfull.

It stepped through and deleted the files matching the date criteria. However, it still asked whether I wanted to remove the directory(which I dont). How can I stop it prompting for me to remove the directory
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top