Announcement

Collapse
No announcement yet.

Copy pictures from SD Card

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Copy pictures from SD Card


    Hi everybody,

    could you help me? I would like to copy pictures from a folder on the sd card to the local pictures folder via command line

    1. Use of recording date: Place pictures in destination and create a folder structure like: \pictures\YYYY_MM_DD\
    2. Create no duplicate files - only copy new files
    3. Do not change pictures
    4. Copy also RAW format pictures
    5. Leave source directory as it is

    Would that be possible?

    Yours

    Holger


    #2
    Are you familiar with batch file programming in Windows?

    Comment


      #3
      Intermediate, yes.

      Comment


        #4
        See what XCOPY can do in a batch file. In a command window enter XCOPY /? for an overview of the options.
        Win 10/64 Home 22H2 IrfanView 4.67/64
        Hate has caused a lot of problems in this world, but it has not solved one yet. (Maya Angelou)

        Comment


          #5
          This would be easier (for me anyway) if you downloaded Unix utilities ported to Windows like:



          or maybe:



          Specifically, find and grep would make determining which images have already been downloaded easy.
          Last edited by IrfanUserGuyxyx; 14.06.2022, 11:16 PM.

          Comment


            #6
            You might look into ROBOCOPY. It has many more options than XCOPY. Like XCOPY, it's part of Windows (System32 folder).

            Comment


              #7
              Thanks. I use robocopy already for creating Backups.

              Therefor a collegue helped me to create a batch:



              @set DOW=

              @for /f %%g in ('wmic path win32_localtime get dayofweek^|findstr /v /r "^$"') do (set DOW=%%g)

              @if %DOW%==0 set DOW=So
              @if %DOW%==1 set DOW=Mo
              @if %DOW%==2 set DOW=Di
              @if %DOW%==3 set DOW=Mi
              @if %DOW%==4 set DOW=Do
              @if %DOW%==5 set DOW=Fr
              @if %DOW%==6 set DOW=Sa

              @echo.
              @echo %DOW%
              @echo.


              ROBOCOPY "C:\Virtual Machines" "y:\Backups\%DOW%\Virtual Machines" /MIR /V /R:5 /W:2 /LOG:C:\TEMP\VMWARE_SHARED_FOLDER\_%DOW%_NAS_VM1.tx t



              I will try to use that as a basis to create a copy job.

              Comment

              Working...
              X