|
|
楼主 |
发表于 2016-3-9 16:13:47
|
显示全部楼层
本帖最后由 chiannet 于 2016-3-9 16:21 编辑
用isocmd.exe的版本:
把以下三个文件置于ISOS\ISOCMD目录下
isocmd.exe
ISODrive.sys
ISODrv64.sys
《TEMPLATE.BAT》
@echo off
cd /d %cd%
if not exist "%cd%\%1" goto error
if not exist ISOCMD\isocmd.exe goto error
ISOCMD\isocmd.exe -i
ISOCMD\isocmd.exe -number 1
for %%i in (W: Y: Z:) DO if not exist %%i\ ( ISOCMD\isocmd.exe -change 1 %%i >nul
ISOCMD\isocmd -mount %%i "%cd%\%1" >nul
if exist %%i\sources\setup.exe (start %%i\sources\setup.exe
goto end)
)
:error
echo 出错了
pause >nul
:end
exit |
|