|
4#
楼主 |
发表于 2010-10-20 09:38:46
|
只看该作者
我的AUTOEXEC。BAT
@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 |
|