Advertisement
repsac

gp-sort-media.bat

Sep 15th, 2022 (edited)
2,080
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Winbatch 0.63 KB | Source Code | 0 0
  1. @echo off
  2. cd %1
  3.  
  4. echo ----moving the high resolution media----
  5. (for %%a in (*.MP4) do (
  6.     IF not exist HIRES ( mkdir HIRES )
  7.     move %%a HIRES
  8. ))
  9.  
  10. echo ----moving audio files----
  11. (for %%a in (*.WAV) do (
  12.     IF not exist WAV ( mkdir WAV )
  13.     move %%a WAV
  14. ))
  15.  
  16. echo ----renaming thumbnails (*.THM) files and moving----
  17. ren *.THM *.JPG
  18. (for %%a in (*.JPG) do (
  19.     IF not exist THUMB ( mkdir THUMB )
  20.     move %%a THUMB
  21. ))
  22.  
  23. echo ----renaming low resolution (*.LRV) video files and moving----
  24. ren GL*.LRV GX??????.MP4
  25. (for %%a in (*.MP4) do (
  26.     IF not exist PROXY ( mkdir PROXY )
  27.     move %%a PROXY
  28. ))
  29.  
  30. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement