repsac icon

gp-sort-media.bat

repsac | PRO | 09/16/22 03:59:58 AM UTC (Edited) | 0 ⭐ | 7035 👁️ | Never ⏰ | [windows, GoPro, Command line]
Winbatch |

630 B

|

Source Code

|

0 👍

/

0 👎

@echo off 
cd %1
 
echo ----moving the high resolution media----
(for %%a in (*.MP4) do ( 
    IF not exist HIRES ( mkdir HIRES )
    move %%a HIRES
))
 
echo ----moving audio files----
(for %%a in (*.WAV) do ( 
    IF not exist WAV ( mkdir WAV )
    move %%a WAV
))
 
echo ----renaming thumbnails (*.THM) files and moving----
ren *.THM *.JPG
(for %%a in (*.JPG) do ( 
    IF not exist THUMB ( mkdir THUMB )
    move %%a THUMB
))
 
echo ----renaming low resolution (*.LRV) video files and moving----
ren GL*.LRV GX??????.MP4
(for %%a in (*.MP4) do ( 
    IF not exist PROXY ( mkdir PROXY )
    move %%a PROXY
))
 
pause

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎