Page 1 of 1

rename file extension script help please -Resolved

Posted: February 12th, 2009, 12:53 am
by alexaa
I need a script to rename file extensions.

I tried a .bat script with the following command:

rename *.mkv *.mp4


but I get the following error:

   
C:\Program Files (x86)\SABnzbd>rename *.mkv *.mp4
The system cannot find the file specified.


Can someone please tell me how to do this. I just want to rename MKV files to MP4

Thanks in advance

Re: rename file extension script help please -Resolved

Posted: February 13th, 2009, 9:41 pm
by alexaa
Copying a script elsewhere this eneded up working:

In a .cmd file I pasted the following:

@echo off
rem Example of a post processing script for SABnzbd

echo.
cd /d %1
if exist *.nfo del *.nfo
ren *.mkv *.avi
echo.




Hopw this helps anyone else looking to do the same thing, for playing in PowerDVD for example.

Re: rename file extension script help please -Resolved

Posted: March 31st, 2009, 6:16 am
by Fire69
Thanks, exactly what I was looking for!  8)