Page 1 of 1

script in copying files to folders in Win2003

Posted: 27 Mar 2009 02:05
by freddyft
Greetings to all,
Kinda new in DOS script for Win2003. I have to admit I am not in programming & have 20 - 30 % knowledge in it. Done everthing in GUI. So I need some help. Here is the situation for windows 2003.

A folder containing files(below, no extension):

Image

need to move these files within certain dates (say, 2 or 3 days old) to another folder and scheduled to run (using Scheduler, of course) every day.

Then after 1 week of copying the folder has to be deleted off it's contents.

So the part of identifying it to be 2 or 3 days older is a bit hard for me to figure out in DOS.

Anyone can help out?

Appreciate the helpl

Posted: 27 Mar 2009 02:34
by JustJoe
Greetings:

This should get you started

Take a look in the "DOS Batch - Date and Time" area on this site. Lots of good stuff about "Using date and time functions in DOS."

http://www.dostips.com/DtTipsDateTime.php

Cheers