Computing.Net > Forums > Programming > Moving files from one folder to diffrent

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.

Moving files from one folder to diffrent

Reply to Message Icon

Name: Adapt
Date: April 30, 2009 at 13:37:16 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

I have 300 files in a folder. Based on their names I want to ditribute to 30 different folders.
Can any one help me in writing a batch script for this activity.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: April 30, 2009 at 15:56:33 Pacific
Reply:

You want just any files to go to any folder, or what?


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: Adapt
Date: May 1, 2009 at 07:30:52 Pacific
Reply:

Thank you very much for the response..

Based on the file name we need to segregate..File name specific.

Eg. we have File A,File B,File C and folder F1,F2 and F3

File A and B should go to F2 and File C to F3....

There are 300 files and 30 folders.Monthly once we need to segregate automatically by batch script.

I have list to identify which file to which folder..

Please help me to simplyfy my script

Example of script to move one file.
If exist C:\Mainfolder\File A MOVE C:\Mainfolder\File A C:\F2 ELSE (echo FILE NOT FOUND)

Do I need to write it for 300 files in same way.Or do we have some looping to incorporate. I am not much familiar with batch scripting.

Thanks in Advance..



0

Response Number 3
Name: Mechanix2Go
Date: May 2, 2009 at 01:33:24 Pacific
Reply:

"I have list to identify which file to which folder.."

Let's see the list.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 4
Name: Adapt
Date: May 21, 2009 at 10:26:21 Pacific
Reply:

AAMF0771
AAMF0801
AAMF0831
AAMF0892
RNMF0141
RNMF0161
RNMF0171
RNMF0221
RNMF0301
RNMF0561
RNMF0811
RNMF0881

The above list for one folder...


0

Response Number 5
Name: Mechanix2Go
Date: May 21, 2009 at 10:37:47 Pacific
Reply:

That list tells us what?


=====================================
If at first you don't succeed, you're about average.

M2


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Moving files from one folder to diffrent

move files from client to network s www.computing.net/answers/programming/move-files-from-client-to-network-s/18745.html

Copying files from one driver hive to another www.computing.net/answers/programming/copying-files-from-one-driver-hive-to-another/18970.html

Moving Files using Java www.computing.net/answers/programming/moving-files-using-java/3600.html