|
Answer» cd\ md c:\archive xcopy /c c:\test c:\archive /d:10-26-09 compact /c c:\archive
This is the batch file I been working on. I have gotten it to do the oppisite I want it to do. Can someone help me get it to move only the files that are older 2 days. This command copys the files that are after the date above. So I need help getting them to copy and move the files that are older then two days WITHOUT PROVIDING the actual date. So please help me. If there is a way to zip the the files and move them that will help me greatly also. I want to show the teacher that this is possible cause he don't THINK it is possible that i will figure it out. But I cant do this alone. I not really versed in this style coding.I could not get the batch file to work.
I suggest nothing.
Good Luck
I could not get the batch file to work.
Bill
I do not suggest you use it.for deleting files older than blah date, that's one extremely slow batch script. Quote from: gh0std0g74 on November 01, 2009, 05:39:53 PM for deleting files older than blah date, that's one extremely slow batch script.
So are you wanting to say the files will be too OLD by the time the batch gets to the end? LOL! .
Which brings up an issue. Anytime you want to find something that is exactly N hours, days, months old, you will have a logical failure. From the time the program STARTS until it ends there may be a probability that some file will fall out of the time frame. This is an ERROR IN LOGIC.thanks for that joke, but no, its definitely not what i meant.
|