Page 1 of 1

Automatically Add .avi Extension to .mkv Files

Posted: September 30th, 2012, 10:37 am
by praeix
Hey all,

Kind of a noobish question, but I can't seem to find an answer on Google. I need to automate adding the .avi extension to my .mkv files that I download through Sabnzbd.

I have a Samsung LED Smart TV and am streaming media directly to it from a Windows 7 PC since I haven't built an HTPC yet. For whatever reason, Samsung Smart TV's will play MKV files, but only if you add the .avi extension to the end of the file. I'm currently using Sick Beard for grabbing TV shows and I'm manually downloading movies. I'm using Sick Beard's post-processing for the TV shows and no post-processing for the movies.

Does anyone know of a way to do this? Does it involve just writing a Windows script? The concept seems very simple and maybe my Google-fu is just broken, but I can't figure this out.

Thanks in advance!

Re: Automatically Add .avi Extension to .mkv Files

Posted: September 30th, 2012, 12:58 pm
by shypike

Code: Select all

@echo off
cd /d %1
ren *.mkv *.avi
Put that in a file called mkv2avi.cmd and set that as a script
for the category dealing with those files.

Re: Automatically Add .avi Extension to .mkv Files

Posted: September 30th, 2012, 3:21 pm
by praeix
Thanks a TON shypike! I added the script and set the default scripts folder, then set it in the categories and everything is working perfectly now.