Question

Locked

XP batch file to move files to multiple folders by file name

By bryonspaeth ·
Hi Community,

I was wondering if someone could help me. I am looking to write a batch program to move files from one folder to multiple folders on another drive by the file names. Do you know if this is possible and how would I do it? Here is what I have so far for moving the files to just one folder. I would like to expand this to multiple folders by the file names.

@ echo off
set /p date="Enter Date "
xcopy /y "C:\Documents and Settings\Desktop\Configurations" "M:\Temp\370000-379999" /d:%date%

This works great for all the files created on the date entered to current date, but the problem I have is after the files are moved I have to manually go and move them to the correct folder.

I am a rookie and will take any help and any good docs to go and look at to learn it myself.

Thanks so much in advance for all of your help.

Bryon

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Hardware Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums