Hi, I am tring to create a .bat file that will move files based on their creation date, anything older than a day needs to be archived, any ideas?
Currently working on such a solution. If you need a copy of my scripts/executables, send me a PM, and specify your email adress. Write your email addess this way, to avoid spam scanners to pickup your email: firstname.lastname(at)server.com
Here's a VBScript (albeit untested): For Each f In CreateObject("Scripting.FileSystemObject").GetFolder(".").Files If f.DateCreated <= Now - 1 Then _ f.Move "c:\someOtherFolder\" Next 'f
I'd start with
---Copy files and folders older than 1 day----
ROBOCOPY C:\Temp C:\Data *.txt /move /minage:1
Does it help?
BTW, Temp is source and Data is Dest.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |