|
Hi chenall,
-----------------------------------------------
@ECHO OFF
pushd "%~dp0"
::如果后辍是.iso就虚拟成iso启动
if /i "%~x1"==".iso" set boot=-boot d -cdrom %1
::如果后辍是.img默认虚拟成fd0启动,如果IMG文件大小超过20971520(20MB)虚拟成硬盘,否则虚拟成软盘
if /i "%~x1"==".img" if %~z1 geq 20971520 (set boot=-boot c -hda %1) else (set boot=-boot a -fda %1)
::如果后辍是.ima默认虚拟成软盘启动
if /i "%~x1"==".ima" set boot=-boot a -fda %1
-------------------------------------------------------------------------------------
Would you mind writing your batch file for QEMU in English , please ?
Thanks
2010kajwar |
|