Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Is there a command to take files out of multiple folders and place them all in one?
New Posts  All Forums:Forum Nav:

Is there a command to take files out of multiple folders and place them all in one?

post #1 of 6
Thread Starter 
I'm looking for a way to move a bunch of pictures from tons of folders that all are located inside one, and put them all into one single folder. I don't care that they'll no longer be separated from pictures taken from another date, I just want them all together.

I have a folder titled DCIM. Inside this folder are many folders named by dates, and all the pictures inside them are named consecutively.
Folder 162_0427 Located at Pictures\DCIM\162_0427 contains images IMG_1685.JPG - > IMG_1698.JPG
Folder 162_0428 Located at Pictures\DCIM\162_0428 contains images IMG_1699.JPG -> IMG_1707.JPG

I would like for all the images, IMG_1685.JPG -> IMG_1698.JPG + IMG_1699.JPG -> IMG_1707.JPG, to be inside something like My Documents\My Pictures\Camera Pictures instead of a collection of folders.

Is there a command I can use to do this? Is it possible?

It may seem like I'm asking for too much for this simple task, but I have around 7GB of Pictures, not just the couple mentioned here. I would have no problem cut/pasting the files from two folders to another but for hundreds or so, it can get time consuming.
i7 Sandy
(8 items)
 
Skylake Pentium
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600K ASRock Z75 Pro3 GTX 970 16GB 
Hard DriveOSMonitorPower
250GB Samsung 850 Evo WinXP Pro / Win7 Pro 1080p 60Hz Thermaltake Smart M850W 
CPUMotherboardGraphicsRAM
Pentium G4400 ASRock H110M-HDV GTX 550 Ti 8GB (2x4) 
Hard DriveOSPowerOther
250GB SSD Windows 7 500W 300Mbps WLAN 
  hide details  
Reply
i7 Sandy
(8 items)
 
Skylake Pentium
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600K ASRock Z75 Pro3 GTX 970 16GB 
Hard DriveOSMonitorPower
250GB Samsung 850 Evo WinXP Pro / Win7 Pro 1080p 60Hz Thermaltake Smart M850W 
CPUMotherboardGraphicsRAM
Pentium G4400 ASRock H110M-HDV GTX 550 Ti 8GB (2x4) 
Hard DriveOSPowerOther
250GB SSD Windows 7 500W 300Mbps WLAN 
  hide details  
Reply
post #2 of 6
One way of doing this is to do a search for *.jpg and copy all the results from the search windows to the destination.

If you're a bit into programming this can be automated to run a script whenever you plug that specific device (you have the device id in device manager) to start a search *.jpg, copy from search and paste to destination. I don't know the commands and for lack of time I can't search them now, but it should be something already done and posted somewhere on the web.
Centurion
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 940 @3.3GHz 1.25V Gigabyte 790X-DS4 XFX 5850 8GB OCZ DDR2-800 
Hard DriveCoolingOSMonitor
Corsair Force 3 TRUE Win 7 Pro x64 ACER 23" TN  
PowerCase
400W Silverstone Strider Antec P182 
  hide details  
Reply
Centurion
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 940 @3.3GHz 1.25V Gigabyte 790X-DS4 XFX 5850 8GB OCZ DDR2-800 
Hard DriveCoolingOSMonitor
Corsair Force 3 TRUE Win 7 Pro x64 ACER 23" TN  
PowerCase
400W Silverstone Strider Antec P182 
  hide details  
Reply
post #3 of 6
Running something like this in the command line should do it (I recommend the copy command, so that you don't accidentally delete anything).
Code:
xcopy SourceDirectoryPath\*.jpg C:\DestinationDirectory /i /s

Replace "SourceDirectoryPath" with the root folder of all the files you want to copy, and "C:\DestinationDirectory" with the folder you want them copied to.
Micro Dance
(8 items)
 
  
CPUMotherboardGraphicsRAM
i7-4790k z97i-plus EVGA GTX980 SC 16GB Team Xtreme 2400 
Hard DriveCoolingOSCase
512GB Samsung SSD 830 NH-L12 Windows 10 EVGA Hadron Air 
  hide details  
Reply
Micro Dance
(8 items)
 
  
CPUMotherboardGraphicsRAM
i7-4790k z97i-plus EVGA GTX980 SC 16GB Team Xtreme 2400 
Hard DriveCoolingOSCase
512GB Samsung SSD 830 NH-L12 Windows 10 EVGA Hadron Air 
  hide details  
Reply
post #4 of 6
Just do a search in dcim. Search for *.* then veiwing files in details click on file type tab. That will make same files types next to each other. Select esnted files then copy and paste to destination folder.
Lawn Mower
(15 items)
 
  
CPUMotherboardGraphicsRAM
2500k 5GHZ ASUS Maximus Gene-Z ATI 6970+6950 cfx Redline 1866 8-8-8-24 
Hard DriveOptical DriveCoolingOS
128gb crucial c300 + 3tb storage LG DVD-RW Noctua nh-d14 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
3x 22" LG Model m2 Antec TP new 650 Element T 
MouseMouse Pad
MX518 Steelseries 
  hide details  
Reply
Lawn Mower
(15 items)
 
  
CPUMotherboardGraphicsRAM
2500k 5GHZ ASUS Maximus Gene-Z ATI 6970+6950 cfx Redline 1866 8-8-8-24 
Hard DriveOptical DriveCoolingOS
128gb crucial c300 + 3tb storage LG DVD-RW Noctua nh-d14 Windows 7 Ultimate x64 
MonitorKeyboardPowerCase
3x 22" LG Model m2 Antec TP new 650 Element T 
MouseMouse Pad
MX518 Steelseries 
  hide details  
Reply
post #5 of 6
make new folder name it what you want ,put it where you want, copy paste files to the new folder, bam done.
post #6 of 6
Thread Starter 
Well, I just made myself feel like a moron.

I could have just right-clicked the DCIM Folder and searched for .jpg, selected all and cut/pasted them to a new folder.

Thanks guys for the help.
i7 Sandy
(8 items)
 
Skylake Pentium
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600K ASRock Z75 Pro3 GTX 970 16GB 
Hard DriveOSMonitorPower
250GB Samsung 850 Evo WinXP Pro / Win7 Pro 1080p 60Hz Thermaltake Smart M850W 
CPUMotherboardGraphicsRAM
Pentium G4400 ASRock H110M-HDV GTX 550 Ti 8GB (2x4) 
Hard DriveOSPowerOther
250GB SSD Windows 7 500W 300Mbps WLAN 
  hide details  
Reply
i7 Sandy
(8 items)
 
Skylake Pentium
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600K ASRock Z75 Pro3 GTX 970 16GB 
Hard DriveOSMonitorPower
250GB Samsung 850 Evo WinXP Pro / Win7 Pro 1080p 60Hz Thermaltake Smart M850W 
CPUMotherboardGraphicsRAM
Pentium G4400 ASRock H110M-HDV GTX 550 Ti 8GB (2x4) 
Hard DriveOSPowerOther
250GB SSD Windows 7 500W 300Mbps WLAN 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Is there a command to take files out of multiple folders and place them all in one?