doshsyy
新手上路
积分 19
发帖 15
注册 2010-8-20
状态 离线
|
『楼 主』:
超详细的AUTOEXEC解析
@ECHO OFF
KPUSH 27 27 ::键盘ASCII表查询及清理工具
KPUSH>NUL ::键盘ASCII表查询及清理工具
REM Made by Wengier. China DOS Union.
REM All rights reserved. 2002-2003.
TM /F ::小巧实用的设置键盘和显示的工具
LH KILLER ::可以自动截获非法指令,以防止死机
LH DOSKEY ::最好的DOSKEY替代程序1.8版,提供命令历史、宏定义、自动完成等功能
LH CTMOUSE ::CuteMouse 1.9版,DOS下最好最实用的鼠标驱动程序
::Note: The following line is for the compatibility on some systems:
LH CTMOUSE>NUL ::CuteMouse 1.9版,DOS下最好最实用的鼠标驱动程序
IF %CONFIG%#==M6# GOTO SHUT
IF NOT %CONFIG%#==M5# GOTO BOOT
ECHO.
ECHO Now preparing to open README with Chinese support...
XMSDSK 80 /Y>NUL ::最好的虚拟内存盘工具,非常方便实用,且只占很少的内存
FINDRAMD>NUL ::实用的查找内存盘盘符的工具
IF %RAMDRIVE%#==# ECHO Can't create RAM disk!
IF %RAMDRIVE%#==# GOTO SHUT
EXTRACT /E /L %RAMDRIVE%\ DOSET.CAB EDIT.COM>NUL ::解压CAB压缩包的工具
XZL ::小巧的袖珍龙汉字系统,以显示汉字
%RAMDRIVE%\EDIT README.TXT ::编辑README.TXT
CLS
XZL /Q ::小巧的袖珍龙汉字系统,以显示汉字
:SHUT
CLS
WBAT BOX "choice:",Shutdown the computer,Restart the computer ::非常强大实用的批处理对话框设计器,支持鼠标操作
IF NOT ERRORLEVEL 3 GOTO ANS
WBAT BOX (RED ON YELLOW) "Note: Please make a choice!",OK ::非常强大实用的批处理对话框设计器,支持鼠标操作
GOTO SHUT
:ANS
IF ERRORLEVEL 2 GOTO RES
ECHO Now trying to shutdown the computer..
ECHO.
SHUTDOWN S ::关机
ECHO.
ECHO Shutdown failed. Your computer may not have an ATX power.
:RES
ECHO Now restart the computer..
ECHO.
SHUTDOWN R ::重启
GOTO END
:BOOT
SET SM=
DREADY C:
IF ERRORLEVEL 1 ECHO Warning: Can't find any valid hard drives!
IF ERRORLEVEL 1 GOTO NOHD
ECHO Y|LOCK C:>NUL
ECHO.
ECHO Now trying to load the hard disk cache to speed the drives up...
WBAT BOX "Please choose the hard disk cache you like in 8 seconds:",PC-CACHE,SMARTDRV,Cancel #1,8
IF ERRORLEVEL 3 ECHO Cancelled.
IF NOT ERRORLEVEL 2 PCCACHE /SIZEXT:4096 /WRITE:OFF /WIN /MINI
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 SET SM=Y
:NOHD
LH SHSUCDX /D:?IDE-CD /D:?USB-CD ::小巧实用的光驱扩展驱动程序最新版,是MSCDEX的最好替代品,只占很少内存
XMSDSK 4096 /Y ::最好的虚拟内存盘工具,非常方便实用,且只占很少的内存
ECHO Now setting up the RAM disk...
FINDRAMD>NUL ::实用的查找内存盘盘符的工具
IF %RAMDRIVE%#==# GOTO NORAM
IF NOT EXIST %RAMDRIVE%\TEMP\NUL MD %RAMDRIVE%\TEMP
SET TMP=%RAMDRIVE%\TEMP
SET TEMP=%RAMDRIVE%\TEMP
IF NOT EXIST %RAMDRIVE%\SYSTEM\NUL MD %RAMDRIVE%\SYSTEM
COPY COMMAND.COM %RAMDRIVE%\SYSTEM>NUL
IF NOT EXIST %RAMDRIVE%\SYSTEM\COMMAND.COM ECHO Warning: Failed to copy files!
IF NOT EXIST %RAMDRIVE%\SYSTEM\COMMAND.COM GOTO COPYERR
SET COMSPEC=%RAMDRIVE%\SYSTEM\COMMAND.COM ::MS-DOS 7.10的命令处理器,支持长文件名
EXTRACT /E /Y /L %RAMDRIVE%\SYSTEM DOSET.CAB>NUL ::解压CAB压缩包的工具,解压DOSET.CAB
EXTRACT /E /Y /L %RAMDRIVE%\SYSTEM VC.CAB>NUL ::解压CAB压缩包的工具,解压SYSTEM VC.CAB
ECHO The necessary tools have been successfully loaded to drive %RAMDRIVE%.
:COPYERR
PATH=%RAMDRIVE%.;%RAMDRIVE%\SYSTEM
IF %SM%#==Y# LH SMARTDRV 4096 2048 /X ::MS-DOS 7.10中自带的磁盘高速缓冲程序
GOTO NEXT
:NORAM
ECHO Warning: Can't create RAM disk!
IF %SM%#==Y# ECHO Can't load SMARTDRV!
SET COMSPEC=A:\COMMAND.COM ::MS-DOS 7.10的命令处理器,支持长文件名
:NEXT
SET SM=
SET DIRCMD=/OGN /4
SET PROMPT=$P$G
PATH=%PATH%;C:.;A:.;.. ::设置命令执行的搜索路径
LH ZENO /Q ::很好的屏幕显示加速软件
LH MOUSCLIP /M ::很实用的在DOS下(包括命令行下)用鼠标复制/粘帖及模拟方向键的工具
WBAT BOX "Please choose the code page for LFNs you want to use:",CP437(English),CP936(S.Chinese),Disable LFN #1,8
IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 LH DOSLFN /C- /Z:CP437UNI.TBL ::DOS下最强大实用的(中)英文长文件名驱动程序
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 LH DOSLFN /C- /Z:CP936UNI.TBL ::DOS下最强大实用的中(英)文长文件名驱动程序
IF %CONFIG%#==M3# IF %RAMDRIVE%#==# ECHO Warning: Can't load NTFS drives support!
IF %CONFIG%#==M4# IF %RAMDRIVE%#==# ECHO Warning: Can't load NTFS drives support!
IF %CONFIG%#==M3# IF NOT %RAMDRIVE%#==# NTFSDOS /U ::DOS下的NTFS驱动器的驱动程序(只读)
IF %CONFIG%#==M4# IF NOT %RAMDRIVE%#==# NTFSDOS /U ::DOS下的NTFS驱动器的驱动程序(只读)
LH ESCAPE ::使在任何时候都可以按F12键返回DOS命令行下,以防止死机
FINDCD /Q ::自编的实用的查找光驱盘符的程序
CLS
WRITEXT 1 1 -f15 Note: ::ECHO显示增强工具,高亮、颜色
ECHO.
IF NOT %CDROM%#==# ECHO For accessing CD/DVD drive, use the drive letter %CDROM%(1st).
IF NOT %RAMDRIVE%#==# ECHO For accessing RAM drive, use the drive letter %RAMDRIVE%.
IF NOT %CONFIG%#==M3# IF NOT %CONFIG%#==M4# ECHO For accessing NTFS drives(if any), type NTFSDOS on the command line.
ECHO At any time, you can press F12 key to return to DOS, or use the mouse.
BREAK ON
LFNFOR ON
IF %RAMDRIVE%#==# GOTO END
ECHO.
ECHO Press ENTER in 2 seconds if you want to start Volkov Commander..
WAIT 2 ::用于批处理文件的等待工具,且支持键盘返回值等操作
SET VC=
IF ERRORLEVEL 13 IF NOT ERRORLEVEL 14 SET VC=1
IF %VC%#==# ECHO Skipped.
ECHO.
ECHO Now you're in MS-DOS 7.10 prompt. [Made by Wengier, China DOS Union]
ECHO.
ECHO For more information, please look at README.TXT on this disk.
ECHO To start Chinese system for Chinese, type XZL on the command line.
WRITEXT 0+ 1 "Any comments, please come to the forum at: " -f15 http://dosbbs.2ya.com/ -f7 ECHO显示增强工具,高亮、颜色
ECHO.
IF %VC%#==# GOTO END
SET VC=
ECHO.
ECHO Starting Volkov Commander...
ECHO.
SET DIF=
STRINGS UMB=UMBLARGE >NUL ::实用的批处理/命令行增强工具
STRINGS DIF=SUB %UMB%,30720 >NUL ::实用的批处理/命令行增强工具
SET UMB=
IF NOT %DIF%#==# GOTO LH
VC ::volkov Commander 4.99版,非常强大实用的文件管理器,支持长文件名
GOTO END
:LH
SET DIF=
LH VC ::Volkov Commander 4.99版,非常强大实用的文件管理器,支持长文件名
:END
ECHO.
Wengier制作的dos系统下载http://www.cn-dos.net/msdos71/mdos71bd.zip很强大的!
[ Last edited by doshsyy on 2010-8-21 at 14:38 ]
|
|