Computer Hope

Microsoft => Microsoft DOS => Topic started by: J.J. on May 24, 2004, 12:40:43 AM

Title: Move files based on Date
Post by: J.J. on May 24, 2004, 12:40:43 AM
Hello all,

For archiving purposes i need to move files > 1month old.

I read all topics but this seems hard to perform in DOS, can anyone help me out?

Thx,
J.J.
Title: Re: Move files based on Date
Post by: dl65 on May 24, 2004, 01:09:51 AM
J.J. why do you have to do it in DOS ?

dl65  ???
Title: Re: Move files based on Date
Post by: J.J. on May 24, 2004, 03:44:24 AM
Hello dl65,

I need the script to run on win2k. The script will be executed by a WMS scheduler.
Why in DOS: Basicly all additional scripting (ftp, file moves, sql kickoffs, ..) is currently done in DOS and i like to keep it that way for the near future.

I tried but my DOS knowledge is nothing more than the basics so the 'date selection' is too much for me.

J.J.
Title: Re: Move files based on Date
Post by: ksmith2112 on July 26, 2004, 07:29:20 AM
I am also in this same boat.  I need to write a batch file that will be run by Windows Scheduled Task.  I need the batch file to look at a directory and move files that are older than the current date - 3, or 72 hours.  Can this be done in DOS?  Thanks!!