Duse anyone have any suggestions on how to Improve this script, it is meant to delete all files and folders except for the film or tv show file i.e. mkv or mp4.
It then moves the files back one folder to the main folder, and then auto renames any tv shows or films to the specified formats below.
Thanks
Code: Select all
cd C:\home\admin\M\
for /f "tokens=*" %%f in ('dir /a:-D /s /b') do move "%%f" .
for /f "tokens=*" %%f in ('dir /a:D /s /b') do rd "%%f"
for /f "tokens=*" %%f in ('dir /a:-D /s /b') do move "%%f" .
for /f "tokens=*" %%f in ('dir /a:D /s /b') do rd "%%f"
del *.jpg
del *.nfo
del *.txt
del *.idx
del *.png
del *.sub
del *.srt
cd C:\Program Files\FileBot\
filebot.exe -rename --db smart C:\home\admin\M\ --format "{n} ({y}){' CD'+pi}{'.'+lang} {vf}" "{n} ({y}) - {s00e00} {vf}"