0

I´m going to get rid of my computer to buy a new one. I have this computer for over 6 years now. It has 3 different Hard-Drives and all the files and folders are a huge mess. All my important documents are in the cloud, the only thing I wish to backup are the photos and images.

Is there a way to do a search and get all the image files so I can copy to my new computer?

I just want to get all the pictures in my computer, regardless of what extension or name they have and save them in an external HD, so I can later move them to my new computer. If there are two files with the same name, I wish to keep both files.

2

You can do this easily within Windows OS by:

  1. Opening file explorer.
  2. Selecting and opening the drive (one at a time).
  3. In the search bar at the top right, type ext:jpg (can replace jpg with any other image file extension (i.e. png, bmp, gif, pmp, etc).

WinDirStat is also a good program for verifying you caught everything (also interesting to see how data is stored on your drive. https://windirstat.net/download.html

  • 1
    You shouldn't search by extension. Search with kind:video or kind:image would be better – phuclv Aug 15 '18 at 4:32
  • @phuclv this is good to know - but why not search by extension? i.e. clarify why? – studiohack Aug 15 '18 at 13:53
  • @studiohack see my comment below – phuclv Aug 15 '18 at 14:42
2

Refer to the following PS script, you can run it as powershell:

$picture='.jpg','.png'
$copyit=Get-PSDrive -PSProvider FileSystem |%{ Get-ChildItem -Path $_.Root -Recurse -force -ErrorAction SilentlyContinue | Where-Object {$_.Extension -in $picture}} 
Copy-Item -Path $copyit.fullname -Destination c:\allimages\

In the first line, you can just add the extension of the images, by ,'.jpeg'.

This will copy all the image with extension that you set into the folder c:\allimages\.

  • 2
    searching specifically for file extensions like that is not good. No one knows all the possible extensions for images on that system. What if the OP has RAW image files like cr2, crw, dng, nef, arw... Searching by MIME type is the best way – phuclv Aug 15 '18 at 7:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.