Forum: UltraISO
Topic: How to extract multiple nrg files at once
started by: brianbong

Posted by brianbong on Oct. 10 2006,15:36
I have played around with ultraiso but can see no way to extract multiple .nrg files to a folder at once?

If they were .iso files, using winrar I could select all files  and do 'extract all to ...' and choose a folder. I was led to believe ultraiso can do this, but can see no way to do it?

If it's one file at a time then I may as well just use daemon tools, anyone know how/if it's done with ultraiso?

Posted by brianbong on Oct. 10 2006,16:32
OK well for now I knocked up this batch file and dropped all my .nrg's onto it. But is there a better way to achieve this?

CODE
SET ULTRAISO="C:\Program Files\UltraISO\UltraISO.exe"

:LOOP
SET SRC=%~1
if "%SRC%"=="" goto  DONE

call %ULTRAISO% -in "%SRC%" -extract "e:\wav"
shift
goto LOOP

:DONE

Posted by xoben on Oct. 10 2006,20:32
QUOTE
But is there a better way to achieve this?

Shell extension like WinRAR will be available soon, so you can do it much easier.

Posted by brianbong on Oct. 10 2006,21:20
OK well for now this is the final ver of simple batch file I wrote and it's working great if anyone wants to try it. I comment out the 'Set DESTROOT....' line using double colons (::) if I just want to extract to new folders off current dir. In this case I set it as I wanted to extract to new folders but on a different drive. To use I just create a shortcut to batch file on desktop then drop as many archive files as I want onto it and it works its way through them. I'm leaving it going overnight as it's unarchiving 20 dvd .nrg files to new drive. I found dvd-r's with 10,000's of files took an hour to copy over to hard drive with endless read head movemeents. So I  imaged them using nero to hard drive which takes 5 mins. I'm sure there's prolly a dvd copy util that does it better but quick n' dirty does it, does it, does it every time

ultraiso.bat
CODE

@ECHO OFF
SET ULTRAISO="C:\Program Files\UltraISO\UltraISO.exe"
:: Set DESTROOT path to extract files to iso named subpath off that path. Else sends iso named subpath where iso is
SET DESTROOT=e:\wav\

:LOOP
SET SRC=%~1

IF "%SRC%"=="" goto  DONE

IF "%DESTROOT%"=="" (
   SET DEST=%~dpn1
) ELSE (
 SET DEST=%DESTROOT%%~n1
)

echo call %ULTRAISO% -in "%SRC%" -extract "%DEST%"
call %ULTRAISO% -in "%SRC%" -extract "%DEST%"

shift
goto LOOP

:DONE


cheers

Posted by xoben on Oct. 11 2006,01:54
Thanks brianbong for sharing the information.