[WINDOWS] Script Improvement Suggestions

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Theabim
Posts: 5
Joined: 17 Sep 2016, 15:46

[WINDOWS] Script Improvement Suggestions

Post by Theabim »

Hi

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}"
Post Reply