Batch command to organise files that share the similar name

May 3, 2012 at 00:27:58
Specs: Windows 7
Hi guys, I have problem with organising files and folders. I am currently managing large volumes and data, which needs anyones input to manage it more efficiently and quickly, if possible. Any help to automate the both scenarios (as described below) in window 7 using command prompt, would be highly appreciated.

I have almost 1500 files in which few files share the same name as below.

1st Scenario

AAA.pdf
AAA-1.tif
AAA-2.tif

BCD.pdf
BCD-1.zip
BCD-2.zip
BCD-3.tif

I want to generate a folder based on .pdf file and move all the files that share the particular file name into the folder just created based on .pdf file name. I have windows 7 system X64-bit. Is there any quick way to do organise all the files ? A DOS script would be great.

2nd Scenario

I have already created folders for each pdf and I have the associated .tif and .zip files that share the same folder name are left behind. I want to move those relevant files to the folder that share the same name.

\AAA
AAA-1.tif
AAA-2.tif

\BCD
BCD-1.zip
BCD-2.zip
BCD-3.tif

I want to move AAA.* to AAA folder and BCD.* to BCD folder.

I think it is fairly easier to deal one folder at a time and I know that but I dont how to apply the same for several files and folders.

A quick reply would be much appreciated.

Awaiting for your answers.

Thanks kindly
vbrsekhar


See More: Batch command to organise files that share the similar name

Report •

#1
May 3, 2012 at 01:42:26
vbrsekhar, my 'off the top of my head' reaction is yes. Suspect you'll get more and more knowledgeable responses in the programming forum @:
http://www.computing.net/forum/prog...
HTH
Ed in Texas


Report •

#2
May 3, 2012 at 22:41:18
Thanks HTH, I will post there again.

Report •
Related Solutions


Ask Question