Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: use a batch file to scan for AND copy pictures  (Read 5817 times)

0 Members and 1 Guest are viewing this topic.

Jazz_Lover

    Topic Starter


    Greenhorn

    • Experience: Beginner
    • OS: Unknown
    use a batch file to scan for AND copy pictures
    « on: December 27, 2012, 01:17:14 AM »
    Is there a way to create aq batch file (for Windows XP) that will scan the hard drive for pictures and place them in a folder?
    I have done searches for utilities but I have found nothing that works this way (thus far).

    foxidrive



      Specialist
    • Thanked: 268
    • Experience: Experienced
    • OS: Windows 8
    Re: use a batch file to scan for AND copy pictures
    « Reply #1 on: December 27, 2012, 01:30:25 AM »
    What picture types do you want to copy into a single folder.  Or do you want to move them?  (that could cause problems with programs, if you move the program resources).

    Or do you only want to search your my documents?

    If you get a file with the same name as another file - how do you want to handle the filename clash?

    DigitalSnow



      Greenhorn

    • Keep It Simple
    • Thanked: 3
      • Certifications: List
      • Experience: Experienced
      • OS: Windows 7
      Re: use a batch file to scan for AND copy pictures
      « Reply #2 on: December 27, 2012, 08:37:08 AM »
      One of the best utilities for copying comes with Windows.  If you have the Windows Resource Pack (Works for XP), there is RoboCopy, else there is xcopy which is already on XP.

      Just click on the link for the options to each of the tools and how to use them.  However, as foxidrive said, if you are copying all image files from a drive into a single folder you are going to have file name clashes due to multiple images having the same name.

      Jazz_Lover

        Topic Starter


        Greenhorn

        • Experience: Beginner
        • OS: Unknown
        Re: use a batch file to scan for AND copy pictures
        « Reply #3 on: December 27, 2012, 04:29:24 PM »
        Thanks for the tips.  I guess I just search manually for the files I wan to copy and move.  Wife has KODAK software that I was hoping to "backup" and repair (she has pictures all over the hd and not organized into folders).  Oh well...

        Oh, RoboCopy comes with the Windows Server 2003 Resource Kit - sounds neat, but can I unstall this kit on XP Professional Service Pack 3?

        No Matter what, Thanks again for the assist!!!

        foxidrive



          Specialist
        • Thanked: 268
        • Experience: Experienced
        • OS: Windows 8
        Re: use a batch file to scan for AND copy pictures
        « Reply #4 on: December 27, 2012, 06:54:38 PM »
        Assuming your wife has saved all the pictures as JPG files then this will create a list for you:

        @echo off
        dir \*.jpg /b /s /a-d >"%useprofile%\desktop\picture list.txt"


        It is possible to filter the list by filesize too - if your wife saved her pictures unmodified and they are all over 1 MB for example, you can filter the files to omit those less than 1 MB.  If her pictures were all over 4 MB then you can filter on that too, with some extra code.