if not exist "%~pn1\Archive\" md "%~pn1\Archive"
forfiles -p"%~1" -m*.* -d-30 -c"CMD /c echo 0x22@PATH\@FILE0x22 & Move /y 0x22@PATH\@FILE0x22 0x22@PATH\Archive\0x22"
pause
Tips and tricks for .NET using ASP and VB code.
Archive files over 30 days old
Drag a folder to this batch file and it will move any files in that folder that are over 30 days old to a subfolder named Archive.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment