script in copying files to folders in Win2003

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
freddyft
Posts: 1
Joined: 27 Mar 2009 01:50

script in copying files to folders in Win2003

#1 Post by freddyft » 27 Mar 2009 02:05

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

JustJoe
Posts: 6
Joined: 17 Mar 2009 12:54

#2 Post by JustJoe » 27 Mar 2009 02:34

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

Post Reply