Forum: UltraISO Topic: Compress .iso to .isz via command line? started by: highend Posted by highend on Aug. 23 2007,19:50
Hi,does the latest UltraISO have command line parameters to compress an .iso image to .isz format and vice versa (from .isz to iso with a dialog that asks for the password? Btw password... Which encryption method is used for the stored registry entry (for the password)? Tia, Highend Posted by xoben on Aug. 23 2007,21:43
< http://www.ezbsystems.com/ultraiso/cmdline.htm >QUOTE -bin2iso filename Convert input CD/DVD image to ISO format -bin2isz filename Compress input CD/DVD image to ISZ format -compress n Set compression level, n = 1-6 -encrypt x Set encrypty method, x = 1-3 -password pass_word_string Set password -split split_size Set segment size in byte Posted by highend on Aug. 24 2007,04:17
Thank you xoben,I read the UltraISO Help file before I went to the forum and these command line parameters were missing there ;) ATM the current way is a bit inflexible. I use a .reg file to add a few commands to the right click context menu for different file formats. For example: CODE [HKEY_CURRENT_USER\Software\Classes\Alcohol Image File\shell\open\command] @="\"D:\\Work\\Tools\\UltraISO\\UltraISO.exe\" \"%1\"" [HKEY_CURRENT_USER\Software\Classes\Alcohol Image File\shell\Convert to ISO] [HKEY_CURRENT_USER\Software\Classes\Alcohol Image File\shell\Convert to ISO\command] @="\"D:\\Work\\Tools\\UltraISO\\UltraISO.exe\" -bin2iso \"%1\"" So when I rightclick on a .mds or .mdf file I get the option to convert it to a standard iso file. With the current command line options this shouldn't be used with .iso -> .isz files in the same way. Why? The password to protect the .isz file would be stored in clear text in the registry. If you don't supply a password the .isz is unprotected and UltraISO does not use the one that you entered in the options window before (that is stored in "ISZKey" afterwards). So I have two feature requests: 1. Change the command line parameter -password to -password FromISZKey|FromPortableFile|<password in clear text>. FromISZKey: UltraISO allows you to enter a key in the configuration settings that is stored (encrypted) in the registry. When you use -password FromISZKey in the command line UltraISO looks up the key in the registry and uses it. FromPortableFile: A few threads under this one I asked if UltraISO would support a .xml | .ini file in the future to make it more portable because without existing registry entries it won't write any if you start it without installing it first. So this is an option when a more portable version comes out and uses the password that is stored in the .xml | .ini file. <password in clear text>: Same behaviour like now. 2. Add -isz2iso as a parameter. If UltraISO recognizes the file was protected with a password and you didn't use -password FromISZKey|FromPortableFile|<password in clear text> it should prompt the user to enter it (unless it was invoked with -silent which would terminate the process). Would you be so kind to answer my second question from the initial thread? (Which encryption method is used for the stored registry entry (for the password)?) Regards, Highend Posted by Galapo on Aug. 26 2007,23:02
(xoben @ Aug. 24 2007,01:43) QUOTE QUOTE -compress n Set compression level, n = 1-6 Is 1 the heaviest compression or is 6? Perhaps this needs to be spelt out explicitly in the help file. Regarding -encrypt x, I assume 1 is AES128, 2 is AES192, and 3 is AES256? Regards, Galapo. Posted by xoben on Aug. 27 2007,09:11
QUOTE Is 1 the heaviest compression or is 6? 1 - Fastest 6 - Heavy QUOTE Regarding -encrypt x, I assume 1 is AES128, 2 is AES192, and 3 is AES256? 2 - AES128 3 - AES192 4 - AES256 Posted by Galapo on Aug. 27 2007,18:13
Thanks xoben for that information.I'm going to change a few batch files now knowing this... Thanks, Galapo. Posted by picurael on Jul. 21 2008,07:09
thank you for this info, I didn't find it in ultraiso's help file (iso2isz command line argument parameter), and I didn't think it would be on their website's help page because I have the last version.. fortunately I found this forum thread on google. thanks again. ultraiso is one of my favorite software and i wish I had the money to afford buying it because it deserves supporting.
Posted by Obsidian-step on May 12 2011,18:09
Hi.May it possible to compress Folder to *isz from shell? Posted by zsqzsqzsq on May 18 2012,04:07
@echo offrem 本批处理作用是为了把现成的ISO文件转换成ISZ文件 title ISO2ISZ echo 正在把%1文件从ISO格式转换为ISZ格式... if exist "%ProgramFiles%\UltraISO\UltraISO.exe" ( if not exist "%ProgramFiles%\UltraISO\ISO2ISZ.CMD" COPY "%~f0" "%ProgramFiles%\UltraISO\ISO2ISZ.CMD" goto DO_ISO2ISZ ) if exist "%ProgramFiles(x86)%\UltraISO\UltraISO.exe" ( if not exist "%ProgramFiles(x86)%\UltraISO\ISO2ISZ.CMD" COPY "%~f0" "%ProgramFiles(x86)%\UltraISO\ISO2ISZ.CMD" goto DO_ISO2ISZ ) else ( echo "UltraISO程序不存在!" pause goto END ) :DO_ISO2ISZ if exist "%ProgramFiles%\UltraISO\UltraISO.exe" set ULTRAISO="%ProgramFiles%\UltraISO\UltraISO.exe" if exist "%ProgramFiles(x86)%\UltraISO\UltraISO.exe" set ULTRAISO="%ProgramFiles(x86)%\UltraISO\UltraISO.exe" %ULTRAISO% -compress 6 -bin2isz %1 -output "%~dpn1.isz" rem 使用%ULTRAISO% -compress 6 -input %1 -output "%~dpn1.isz"压缩得到的ISZ文件解压缩出现来的文件会与原文件检验码不一致(ultraiso版本9.5.2.2836) if %errorlevel% neq 0 ( echo %1压缩失败! del "%~dpn1.isz" pause goto END ) rem 按道理说,压缩后返回errorlevel为0,就说明压缩成功;可为了保险起见,还想在ISZ测试成功后再删除原ISO文件。 rem %ULTRAISO% -verify "%~dpn1.isz" if %errorlevel% equ 0 ( echo %1压缩成功! del %1 ) :END rem 右键菜单调用该批处理的注册表,请根据X64,X86对路径作相应的修改。 rem Windows Registry Editor Version 5.00 rem rem [HKEY_CLASSES_ROOT\.iso] rem @="UltraISO" rem rem [HKEY_CLASSES_ROOT\UltraISO\shell\ISO2ISZ] rem @="压缩为ISZ格式" rem rem [HKEY_CLASSES_ROOT\UltraISO\shell\ISO2ISZ\command] rem @="\"C:\\Program Files (x86)\\UltraISO\\ISO2ISZ.cmd\" \"%1\"" rem Posted by zsqzsqzsq on May 18 2012,04:09
I want to know how to test .ISZ via command line.
Posted by austing on Jun. 23 2012,16:04
hi Zsq, got any updates on this case?
Posted by meilinanhai on Oct. 02 2014,23:28
Hi,xoben:i have a problem, how to set the total size of *.isz file by command line? if the size of *.isz file is overloaded? does this matter? thanks! |