Page 1 of 1

this is not working at all for me

PostPosted: Fri Jun 13, 2008 11:10 am
by confused_user
I have a bit of software producing illegal file extensions (_.mpg) so i need to rename the output file extensions on the fly if possible. Basically all i want to do is every 2 minutes look in a directory and change the file extension of every file in the directory to .mpg

I was thinking of running a script as a scheduled task or whatever it's called in windows (cron job)

For some reason though i cant get brc32.exe to do anything other than tell me the system cannot find the file specified.

I run -
Code: Select all
brc32.exe /FIXEDEXT:<.mpg>


the syntax of the command is oncorrect

Code: Select all
brc32.exe /FIXEDEXT:<.mpg> /DIR:path


the system cannot find the file specified

Code: Select all
brc32.exe /execute /FIXEDEXT:<.mpg>


can anyone tell me where i'm going wrong?, i'm not new to cli apps, linux is my usual OS but this tool is not behaving like a normal cli app

Re: this is not working at all for me

PostPosted: Fri Jun 13, 2008 11:15 am
by confused_user
nevermind lol,

Code: Select all
ren *._mpg *.mpg


works

Re: this is not working at all for me

PostPosted: Fri Jun 13, 2008 2:00 pm
by Admin
Yes, ren is the simplest command.

Though your problem was the angle brackets <>. This is a fairly international convention for showing xample code, e.g.

<enter>

etc. You don't actually want to include them.



Jim