Computing.Net > Forums > Disk Operating System > Batch File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File

Reply to Message Icon

Name: Avinash
Date: October 31, 2003 at 10:49:38 Pacific
OS: Win 2k Server
CPU/Ram: 2G/1G
Comment:

Hi,
I am trying to write a batch file which does the following:
1. Move all the files created on weekdays to be sorted to their respective days folder Example: Files created on Tuesday should be moved to a folder named "Tuesday"(When the batch file is run on Wednesday).
2. Only that particular day's created files should be present in the main directory and the other files should be moved to their respective days(created days) folder!!!!!
Could you please help me out!!!!!
Thanks.
A




Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: November 4, 2003 at 15:39:31 Pacific
Reply:

Hi Avinash
This seems an interesting problem.
I'm not familar Win 2k Server,but if you type
"echo %date% at on the command line do'es it output ie. "10/04/2003" or doe's it output
"Tue 10/04/03" which I believe NT doe's.
I running WinXP Pro which output the date in the first format.
Are there only todays and yesterdays files in the directory which you want to copy from.
The reason I ask about the date format is that we may have to use a third party batch utility to obtain the weekday.
But if it's the same output as NT than it won't be required.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch File

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html

Batch files - - Mapping network drive www.computing.net/answers/dos/batch-files-mapping-network-drive/3809.html

Pause batch file www.computing.net/answers/dos/pause-batch-file/2810.html