为什么exit不能自动退出呀
就是用exit退出啊,如下:
cmdow @ /HID
@echo off
IF EXIST D:\CDROM_IP.5 set CDROM=D:
IF EXIST E:\CDROM_IP.5 set CDROM=E:
IF EXIST F:\CDROM_IP.5 set CDROM=F:
IF EXIST G:\CDROM_IP.5 set CDROM=G:
IF EXIST H:\CDROM_IP.5 set CDROM=H:
IF EXIST I:\CDROM_IP.5 set CDROM=I:
IF EXIST J:\CDROM_IP.5 set CDROM=J:
IF EXIST K:\CDROM_IP.5 set CDROM=K:
IF EXIST L:\CDROM_IP.5 set CDROM=L:
IF EXIST M:\CDROM_IP.5 set CDROM=M:
IF EXIST N:\CDROM_IP.5 set CDROM=N:
IF EXIST O:\CDROM_IP.5 set CDROM=O:
IF EXIST P:\CDROM_IP.5 set CDROM=P:
IF EXIST Q:\CDROM_IP.5 set CDROM=Q:
IF EXIST R:\CDROM_IP.5 set CDROM=R:
IF EXIST S:\CDROM_IP.5 set CDROM=S:
IF EXIST T:\CDROM_IP.5 set CDROM=T:
IF EXIST U:\CDROM_IP.5 set CDROM=U:
IF EXIST V:\CDROM_IP.5 set CDROM=V:
IF EXIST W:\CDROM_IP.5 set CDROM=W:
IF EXIST X:\CDROM_IP.5 set CDROM=X:
IF EXIST Y:\CDROM_IP.5 set CDROM=Y:
IF EXIST Z:\CDROM_IP.5 set CDROM=Z:
start /wait %CDROM%\Software\IE6\IE6SETUP.EXE /Q:A /C:"ie6wzd /S:""#e"" /Q:A /R:N"
start /wait %CDROM%\Software\DirectX9b\dxsetup.exe /opk
start /wait %CDROM%\Software\Hotfixs\KB823182.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB824105.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB825119.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB826232.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB828035.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB828741.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB828749.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB835732.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB837001.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB839643.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB840315.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB840987.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB841356.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB841533.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB841872.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB841873.exe -u -o -q -z
start /wait %CDROM%\Software\Hotfixs\KB842526.exe -u -o -q -z
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "安装常用软件和系统更新" /f
REG ADD %KEY%\101 /VE /D "继续 IE6_SP1 的安装" /f
REG ADD %KEY%\102 /VE /D "" /f
REG ADD %KEY%\104 /VE /D "" /f
REG ADD %KEY%\005 /VE /D "安装 Windows Media Player 9" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\WMP9\MPSetupXP.exe /Q:A /R:N" /f
REG ADD %KEY%\010 /VE /D "安装 FlashGet V1.4" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Software\Flashget\fg140.exe /s" /f
REG ADD %KEY%\015 /VE /D "安装 暴风影音 5" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\MY_MPC\StormCodec50029.exe /quickasso /skipcheck /skipcnnic /S" /f
REG ADD %KEY%\020 /VE /D "安装 WinRAR V3.3" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\WinRAR\winrar.exe /s" /f
REG ADD %KEY%\025 /VE /D "安装 ACDSee V3.1" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\ACDSee\AutoSetup.exe" /f
REG ADD %KEY%\030 /VE /D "安装 Office 2000 迷你版" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Software\Office_Mini\setup.exe" /f
REG ADD %KEY%\035 /VE /D "安装 系统安全更新" /f
REG ADD %KEY%\035 /V 01 /D "%CDROM%\Software\Hotfixs\js56nchs.exe /Q:A /R:N" /f
REG ADD %KEY%\035 /V 02 /D "%CDROM%\Software\Hotfixs\KB329115.exe -u -o -q -z" /f
REG ADD %KEY%\035 /V 03 /D "%CDROM%\Software\Hotfixs\KB819639.exe /Q:A /R:N" /f
REG ADD %KEY%\035 /V 04 /D "%CDROM%\Software\Hotfixs\KB819696.exe -u -o -q -z" /f
REG ADD %KEY%\035 /V 05 /D "%CDROM%\Software\Hotfixs\KB823559.exe -u -o -q -z" /f
REG ADD %KEY%\035 /V 06 /D "%CDROM%\Software\Hotfixs\KB889293.exe -u -o -q -z" /f
REG ADD %KEY%\035 /V 07 /D "%CDROM%\Software\Hotfixs\KB833989.exe /Q:A /R:N" /f
REG ADD %KEY%\035 /V 08 /D "%CDROM%\Software\Hotfixs\msxml3.exe /Q:A /R:N" /f
REG ADD %KEY%\035 /V 09 /D "%CDROM%\Software\Hotfixs\Q832483.exe C:\"dahotfix.exe /Q /N\" /Q:A" /f
REG ADD %KEY%\080 /VE /D "删除 临时文件" /f
REG ADD %KEY%\080 /V 1 /D "%CDROM%\Software\cleanup.cmd" /f
RD /S /Q %systemdrive%\install\
EXIT