Advanced file / directory copy in Windows 10

jn77

Distinguished
Feb 14, 2007
587
0
18,990
Hi,

I have a Situation where for example E:\DCIM\2017-08-10\Pets\Dogs\ *.jpg; *.bmp; *.tiff

So basically I have photo's in 3 different formats in the same directory on the hard drive.

What I want to do is maintain the directory structure with one major change.

I would like

  • E:\DCIM\JPG\2017-08-10\Pets\Dogs\
    E:\DCIM\BMP\2017-08-10\Pets\Dogs\
    E:\DCIM\TIFF\2017-08-10\Pets\Dogs\

Such that I have 3 copies of the directory structure, but only JPG's in one, BMP's in the second and then TIFF's in the 3rd.

I am sure there is an easy way to do this in DOS/Command line or on a Linux box, or with some batch script, but I am not sure how to that.

I am on Windows 10 Pro. Any help would be appreciated, Thank you.
 
Solution
Download https://www.advancedrenamer.com/ and run it.

Drag and drop the files (or better yet, the folders) that has the files in them onto the program.

In middle near top set the Batch mode to Move.

For the Output folder type in:
E:\DCIM\<Ext>\<DirName:3>\<DirName:2>\<DirName:1>\

Look in the list below at the New Path column to make sure it's right.

At top/right click on START BATCH.

Click the Start button in the dialog.

The files should be moved.

This will NOT delete the old folders. You should make sure they are empty and remove them manually.

USAFRet

Titan
Moderator
Create your 3 new folders

at the commandline:
copy E:\DCIM\2017-08-10\Pets\Dogs\*.jpg E:\DCIM\2017-08-10\JPG\Pets\Dogs\
copy E:\DCIM\2017-08-10\Pets\Dogs\*.bmp E:\DCIM\2017-08-10\BMP\Pets\Dogs\
copy E:\DCIM\2017-08-10\Pets\Dogs\*.tiff E:\DCIM\2017-08-10\TIFF\Pets\Dogs\

Then, after verifying all is good, simply delete the original folder.
 

jn77

Distinguished
Feb 14, 2007
587
0
18,990


Right that would normally work, I should have provide more details, what happens if I have, Dogs, Cats, Chickens, Pigs, Cows, Horses, Sheep, Bunnies, Roosters, etc.

Say I potentially have 500 different animal sub directories that need to be created.

I would be a pain to manually create all those directories one by one. :-(.

 

USAFRet

Titan
Moderator


This is where a cataloging application like Adobe Lightroom comes in handy.
Keywords for each image file.

But if you don't want to use that...it would take almost as much time to create and debug a batch file to autocreate new folders based on some small section of the original path, than to just to it manually once and be done with it.

Given a disorganized file structure, that "one small section" of the path is almost certainly not standardized.
 

jn77

Distinguished
Feb 14, 2007
587
0
18,990


Is there anyway that xcopy could do it for me with wildcards? I stopped using Adobe products when they started leasing their software for subscriptions.
 

gardenman

Splendid
Moderator
Download https://www.advancedrenamer.com/ and run it.

Drag and drop the files (or better yet, the folders) that has the files in them onto the program.

In middle near top set the Batch mode to Move.

For the Output folder type in:
E:\DCIM\<Ext>\<DirName:3>\<DirName:2>\<DirName:1>\

Look in the list below at the New Path column to make sure it's right.

At top/right click on START BATCH.

Click the Start button in the dialog.

The files should be moved.

This will NOT delete the old folders. You should make sure they are empty and remove them manually.
 
Solution