Extracten ISO- en IMG-files

Come up with a useful post-processing script? Share it here!
Post Reply
Squidy2391
Newbie
Newbie
Posts: 4
Joined: January 18th, 2010, 1:44 pm

Extracten ISO- en IMG-files

Post by Squidy2391 »

Because my Orb-application (for videostreaming from my pc to iphone) doesn't recognise ISO's and IMG's, I had to extract the files before I was able to watch it.

Therefor I have come up a simple bat-script. The only requirement is the application MagicIso. I know this isn't a free app, but it is a start. When you know a free app, which is able to extract ISO and IMG files through commandline, reply on this post....than I will start scripting.

Remark: Change to drive and directory to the installed location of MagIso (default: c:\program files\magico iso\)
Remark: %1 is the variable giving by sabnzbd, which points to the final directory of the job (full path).

Extract ISO-file
set LocationIso=%1\
set TargetUnpack=%1\
FOR /R %LocationIso% %%G IN (*.iso) DO set Iso=%%G
D:
cd "D:\Program Files\MagicIso\"
FOR /R %LocationIso% %%G IN (*.iso) DO miso.exe "%%G" -x %TargetUnpack%

Extract IMG-File
set LocationIso=%1\
set TargetUnpack=%1\
FOR /R %LocationIso% %%G IN (*.img) DO set Iso=%%G
D:
cd "D:\Program Files\MagicIso\"
FOR /R %LocationIso% %%G IN (*.img) DO miso.exe "%%G" -x %TargetUnpack%



Vertel mij jullie ervaringen....
Last edited by Squidy2391 on January 18th, 2010, 5:35 pm, edited 1 time in total.
Xenomes
Newbie
Newbie
Posts: 9
Joined: December 20th, 2009, 8:09 am

Re: Extracten ISO- en IMG-files

Post by Xenomes »

Hi,

I use a smiler script to extract iso!
I use to extact the iso 7-Zip.

Code: Select all

@echo off
rem Extract ISO files

IF EXIST %1\*.iso goto ISO
IF EXIST %1\VIDEO_TS  goto Video
goto end

:ISO
echo Detected ISO
d:
cd %1
echo cd %1
echo.
C:\PROGRA~1\7-Zip\7z.exe x *.iso -y
goto DEL

:Video
echo VIDEO_TS Gevonden
goto mkdir

:DEL
echo Delete
del *.iso -q

:mkdir
echo Create Audio_ts
mkdir AUDIO_TS"

:end
echo Done.
medyaye
Newbie
Newbie
Posts: 3
Joined: November 8th, 2009, 4:39 am

Re: Extracten ISO- en IMG-files

Post by medyaye »

Hi,

i know this topic is quite old, but i'm having  trouble playing bluray backup in iso files. No issue when they are unapacked.

So my question : i haven't tested Xenomes script, but what would happened if the iso is store in a subdir of the final job dir ?

Is there a simple way to check all subdir of the final job dir ?

Thx for your precious help  ;D
Post Reply