|
You can learn it from file Startup.cmd.
This code
- for %%I in (C D E F G H I J K L M N O P Q R S T U V W X Y Z A B) DO (dir %%I:\ 1>nul 2>nul && if /i exist %%I:\HBCD\HBCDMenu.exe if /i exist %%I:\HBCD\Programs\7z.exe set HBCD=%%I:&goto k)
- if not "%ISO%"=="" goto h
- set ISO=none
- for /f "tokens=5 delims==" %%X in ('REG QUERY HKLM\SYSTEM\Controlset001\Control /v SystemStartOptions') do set ISO=%%X
- for %%I in (C D E F G H I J K L M N O P Q R S T U V W X Y Z A B) DO (dir "%%I:%ISO%" 1>nul 2>nul && imdisk -a -m #: -f "%%I:%ISO%"&nircmd wait 3000&goto a)
复制代码
it means
- HBCDMenu.exe must present
- If you extract file iso, no need /iso=\ISO\Hiren'sBootCD.iso (HBCDMenu.exe in usb device)
- If you boot from iso file (path \ISO\Hiren'sBootCD.iso; file not fragment), it will mount file Hiren'sBootCD.iso with imdisk, find HBCDMenu.exe and start all component from virtual drive. |
|