kolamorx
16th July 2017, 03:47
I have this batch file, which does the job:
@echo off
setlocal EnableDelayedExpansion
for %%i in (*.wav) do (
ren "%%i" "!RANDOM!_%%i"
)
endlocal
(for %%i in (*.wav) do @echo file '%%i') > mylist.txt
ffmpeg -f concat -i mylist.txt -c copy out.wav
However, I want to limit the random numbers to 100-999 and to remove the first 4 digits (3 numbers and _) after the joining process is over. In other words, to rename the files names back to their original names. (I don't think there is an option to just undo renaming.)
Does anybody know how to do this?
@echo off
setlocal EnableDelayedExpansion
for %%i in (*.wav) do (
ren "%%i" "!RANDOM!_%%i"
)
endlocal
(for %%i in (*.wav) do @echo file '%%i') > mylist.txt
ffmpeg -f concat -i mylist.txt -c copy out.wav
However, I want to limit the random numbers to 100-999 and to remove the first 4 digits (3 numbers and _) after the joining process is over. In other words, to rename the files names back to their original names. (I don't think there is an option to just undo renaming.)
Does anybody know how to do this?