Been using this script for years that I found from here for renaming movie filenames from parent foldernames:
@echo off
for /r /d %%x in (*) do (
pushd "%%x"
echo %%x
for /F %%i in ("%%x") do (
ren *.mkv "%%~ni.mkv" 2> NUL
ren *.avi "%%~ni.avi" 2> NUL
ren *.mp4 "%%~ni.mp4" 2> NUL
)
popd
)
So the only issue that I'm having is the parent folder looks like this:
MovieFolder-xyz
Running the script, the filename will be:
MovieFolder.mp4
the issue here is the "-xyz" gets omitted and I'm too simple minded to figure out how to fix this script so that I don't have to manually rename all the files. Tia!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…