EliseFreedman
Programmer
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
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