Batch decode mrSid files

For discussion of other LizardTech products.

Moderator: jskiffington

Batch decode mrSid files

Postby MBSteve » Tue Jul 07, 2009 5:00 am

I have several dozen mrSid files collected from Ancestry.com that I've been converting to .jpgs using mrsidgeodecode. Is there a way to batch convert all of them at once, replacing <filename>.sid with <filename>.jpg? In other words using the filename for the sid file into the jpg name.
Thanks, Steve
MBSteve
 
Posts: 2
Joined: Tue Jul 07, 2009 4:56 am

A batch file or command prompt works to do it

Postby MBSteve » Sat Jul 25, 2009 2:43 am

I got back to it, so if anyone ever has the same question a simple batch file will work in the same directory with the files and mrsidgeodecode:
FOR %%a IN (dir /b *.sid) DO mrsidgeodecode -i %%a -o %%a.jpg
pause

If you type it into a command prompt eliminate one of the %s from the variable:

FOR %a IN (dir /b *.sid) DO mrsidgeodecode -i %a -o %a.jpg
MBSteve
 
Posts: 2
Joined: Tue Jul 07, 2009 4:56 am


Return to Other LizardTech Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron