rename file extension script help please -Resolved

Come up with a useful post-processing script? Share it here!
Post Reply
alexaa
Newbie
Newbie
Posts: 19
Joined: May 4th, 2008, 10:37 pm

rename file extension script help please -Resolved

Post 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
Last edited by alexaa on February 13th, 2009, 9:39 pm, edited 1 time in total.
alexaa
Newbie
Newbie
Posts: 19
Joined: May 4th, 2008, 10:37 pm

Re: rename file extension script help please -Resolved

Post 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.
Last edited by alexaa on March 31st, 2009, 10:10 pm, edited 1 time in total.
Fire69
Newbie
Newbie
Posts: 16
Joined: July 10th, 2008, 4:00 am

Re: rename file extension script help please -Resolved

Post by Fire69 »

Thanks, exactly what I was looking for!  8)
Post Reply