Solved move multiple files to multiple folder

June 15, 2011 at 14:14:30
Specs: Windows XP, 2 gb
I need to move multiple files to their corresponding folders.
For e.g.I have files named:
ward_N_pr,
ward_E_pr,
divide_W_pr,
divide_E_pr
I want to batch move into folders: ward_N, ward_E, divide_w, divide_E.
Can any one help me with my problem?

Thank you in advance..


See More: move multiple files to multiple folder

Report •


✔ Best Answer
June 20, 2011 at 09:18:59
:-) EXCELLENT

working on it now

mike



#1
June 18, 2011 at 06:25:18
In theory you could use wild cards?

for example
@echo off

move C:\ward_N*.* c:\ward_N\
move C:\ward_E*.* c:\ward_E_pr
move c:\divide_W*.* c:\divide_W_pr
move c:\divide_E*.* c:\divide_E_pr
?

mike


Report •

#2
June 19, 2011 at 10:51:40
Thanks Mike
I however have >1000 such files to move. Can you help me with a script to move them using batch command..

Thank you
nav


Report •

#3
June 19, 2011 at 11:47:20
i guess i am confused, did you want a folder for each and every batch file? or is there a common part in the files that you wanted sorted? if so, what is the common piece that is being sorted and where do you want it?

for example if you want all files that have myfile in the name sorted into c:\myfile thats an option, otherwise there has to be something else that describes what file goes where

mike


Report •

Related Solutions

#4
June 20, 2011 at 06:27:30
Sorry Mike that I did not clearly mentioned my problem. Let me try with my data.

My data are image layers along with supporting files. They start with a location name and each of them need to go to a folder with same location name.
for eg. Ward_N_pr.tif
Ward_N_pr.aux
Ward_N_pr.xml

These all go to a single folder named Ward_N

similarly
Bark_boy_N_SW_pr.tif
Bark_boy_N_SW_pr.aux
Bark_boy_N_SW_pr.xml

these three go to folder named Bark_boy_N_SW.
And there are >1000 of these kinds that all need to be moved to their respective folders.

Thanks
Nav


Report •

#5
June 20, 2011 at 09:18:59
✔ Best Answer
:-) EXCELLENT

working on it now

mike


Report •

#6
June 22, 2011 at 07:11:48
Hi Mike,

just wondering if you could find a solution :)

Nav


Report •


Ask Question