@echo off
prompt $p$g
set tz=gmt-8
set dircmd=/o:n
set path=a:
set param=-nousb
set isreboot=-rb
xmsman
set hdpmi=16384
hdpmi32
ndos -lfn -mountall -cp:936
for %%b 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) do if exist %%b:\gjdn.ima set s=%%b
for %%b 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) do if exist %%b:\ghost\ghosthis.txt set ghosthis=%%b:\ghost\ghosthis.txt
if exist %ghosthis% attrib -h -s -r %ghosthis% > nul
if exist %ghosthis% copy %ghosthis%
if exist %ghosthis% set hisrc=%ghosthis%
if exist %ghosthis% set ghosthis=a:\ghosthis.txt
if not exist %s%:\ghost.bat call minito.bat
if exist %s%:\boot*.* attrib -h -s -r %s%:\boot*.* > nul
if exist %s%:\ghost*.* attrib -h -s -r %s%:\ghost*.* > nul
if exist %s%:\ghost.ex_ copy %s%:\ghost.ex_ ghost.exe /y
if exist %s%:\ghost.ex_ del %s%:\ghost.ex_
if exist %s%:\ghost.bat copy %s%:\ghost.bat
if exist %s%:\ghost.bat del %s%:\ghost.bat
if exist %s%:\boot.BF del %s%:\boot.ini
if exist %s%:\boot.BF ren %s%:\boot.BF boot.ini
if exist %s%:\Boot\BCD_ attrib -h -s -r %s%:\Boot\BCD*.* > nul
if exist %s%:\Boot\BCD_ del %s%:\Boot\BCD
if exist %s%:\Boot\BCD_ ren %s%:\Boot\BCD_ BCD
if exist %s%:\uninst~1\*.* goto next
if exist %s%:\uninst~2\*.* goto next
if exist %s%:\gjldr*.* attrib -h -s -r %s%:\gjldr*.* > nul
if exist %s%:\gjdn*.* attrib -h -s -r %s%:\gjdn*.* > nul
if exist %s%:\gjldr del %s%:\gjldr
if exist %s%:\gjldr_ ren %s%:\gjldr_ gjldr
if exist %s%:\gjldr.mbr del %s%:\gjldr.mbr
if exist %s%:\gjldr.mb_ ren %s%:\gjldr.mb_ gjldr.mbr
if exist %s%:\gjdn.ima del %s%:\gjdn.ima
if exist %s%:\gjdn.im_ ren %s%:\gjdn.im_ gjdn.ima
if exist %s%:\gjldr*.* attrib +h +s +r %s%:\gjldr*.* > nul
if exist %s%:\gjdn*.* attrib +h +s +r %s%:\gjdn*.* > nul
:next
for %%b in (bootlog.txt hiberfile.sys pagefile.sys) do if exist %s%:\%%b attrib -h -s -r %s%:\%%b > nul
for %%b in (bootlog.txt hiberfile.sys pagefile.sys) do if exist %s%:\%%b del %s%:\%%b
if exist %s%:\boot*.* attrib +h +s +r %s%:\boot*.* > nul
if exist %s%:\ghost*.* attrib +h +s +r %s%:\ghost*.* > nul
xmsman -c
if exist a:\ghost.bat ghost.bat
menu.bat作者: zhaohj 时间: 2010-10-20 12:06
Gjdn.ima中的autoexec.bat是这么写的吗?作者: awfymwvf 时间: 2010-10-20 14:44
回楼上。就是这么写的啊作者: my9823 时间: 2010-10-20 18:36
貌似一个img就可以,好像用grub4dos的那个传递参数的什么什么做到,坐等批处理达人!