03-04-2019 07:55 AM - edited 03-04-2019 07:56 AM
Script for bulk renaming GoPro files.[ New ]
I want to share a script I created for bulk renaming the GoPro files to be shown in correct order in folder and applications.
The original naming convention is not very good as the file index is located in the middle of the filename and the sequence number is in the back of the filename, which is very unconvenient when working and viewing the files in different applications. Yes, sorting by date should solve the problem, but it doesn't work every time and in every application.
Original GoPro Camera File Naming Convention
So here is the script, which exchanges the order of first 4 symbols of the filename with the last 4, for all the files in the folder. Including the *.thm and *.lrv. The script is reversible, so running it the second time in the same folder reverts the filenames back.
Just create a _script_.bat file, copy and run in the folder with GoPro files.
echo Changing file number position in GoPro filenames
echo like this: GXXXYYYY*.* ^<-^> YYYYGXXX*.*
for /f "delims= eol=:" %%f in ('dir /b /a-d G???????*.* ????G???*.*') do (
echo %%f ^> !secondfour!!firstfour!!filename:~8!%%~xf
ren %%f !secondfour!!firstfour!!filename:~8!%%~xf