3.isocmd加载ISO或压缩ISZ方案:最好用,PE内核system32中加入isocmd.exe及ISODrive.sys和ISODrv64.sys
@echo off
isocmd.exe -number 1
isocmd.exe -i
isocmd.exe -change 1 t:
for %%i in (D: E: X: C: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: Y: Z:) DO (
if exist %%i\iso\NVXPPE.ISO (SET OPDrv=%%i&SET OPExt=iso&goto :mount_iso)
)
:mount_iso
isocmd -mount t: %OPDrv%\iso\NVXPPE.%OPExt% >nul
SET OPExt=
pecmd load T:\tools\winpe.ini
语句用法 如下:
ISOCMD -NUMBER 1 (设定光盘数量)
ISOCMD -i (开始安装驱动)
ISOCMD -MOUNT 0: ISO路径 (加载ISO文件到最后一个可用盘符)
ISOCMD -EJECT 0: (卸载最后加载的光驱,不管是否有文件打开)
ISOCMD -r (卸载驱动)
ISOCMD -v (或p,显示信息)
ISOCMD -s (启用驱动)
ISOCMD -1 (停止驱动)
isocmd.exe -change 1 y:(固定挂载光盘为Y盘