Here is what it does
puts itself in the proper directory
checks to see if an .mkv exists, if not it goes straight to Sick Beard for the (presumably) .avi file to be renamed and sorted
runs xenonmkv to convert the .mkv to xbox 360 compatible .mp4
if the conversion was successful, delete the original .mkv file
launch sabtosickbeard to rename and sort the files
wait 15 seconds before attempting to delete the original download dir (via ping command, im sure a better way exists)
if i dont wait 15 seconds, sometimes i would get a "directoy in use" error.
Code: Select all
cd /d %1
IF NOT EXIST *.mkv GOTO NOMKV
IF EXIST *.mkv XenonMKV.exe -inputfolder %1 -outputfolder %1
cd /d %1
IF EXIST *.mp4 del *.mkv
:NOMKV
E:\SickBeard\autoProcessTV\sabToSickBeard.exe %1
ping 1.1.1.1 -n 1 -w 15000
cd ..
rmdir %1
exit
ok, feel free to adjust it to your liking. Xenonmkv.exe needs to be in your PATH. Also, This script
assumes your sick beard install dir is E:\Sickbeard so change it to whatever it actually is.
if you improve upon it, please post below in the comments.