中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » [求助]谁能说说这一批处理的意思?thank you!
作者:
标题: [求助]谁能说说这一批处理的意思?thank you! 上一主题 | 下一主题
6618
中级用户




积分 356
发帖 54
注册 2003-4-15
状态 离线
『楼 主』:  [求助]谁能说说这一批处理的意思?thank you!

谁能说说这一批处理的意思?THANK YOU!这是MSDOS启动盘的BAT,请各位多多指教!

@ECHO OFF
KPUSH 27 27
KPUSH>NUL
REM Made by Wengier. China DOS Union.
REM All rights reserved. 2002-2003.
TM /F
LH KILLER
LH DOSKEY
LH CTMOUSE
::Note: The following line is for the compatibility on some systems:
LH CTMOUSE>NUL
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
XZL
%RAMDRIVE%\EDIT README.TXT
CLS
XZL /Q
:SHUT
CLS
WBAT BOX "Please enter your 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 LH PCCACHE /SIZEXT:4096 /WRITE:OFF /WIN /MINI
IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 SET SM=Y
:NOHD
ECHO.
LH CLOAKFIX>NUL
LH CLOAKING
LH MSCDEX /D:IDE-CD /D:SCSI-CD /D:USB-CD /S /K
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
EXTRACT /E /Y /L %RAMDRIVE%\SYSTEM DOSET.CAB>NUL
EXTRACT /E /Y /L %RAMDRIVE%\SYSTEM VC.CAB>NUL
ECHO The necessary tools have been successfully loaded to drive %RAMDRIVE%.
:COPYERR
PATH=%RAMDRIVE%.;%RAMDRIVE%\SYSTEM
IF %SM%#==Y# LH SMARTDRV 4096 2048 /X
GOTO NEXT
:NORAM
ECHO Warning: Can't create RAM disk!
IF %SM%#==Y# ECHO          Can't load SMARTDRV!
SET COMSPEC=A:\COMMAND.COM
:NEXT
SET SM=
SET DIRCMD=/OGN /4
SET PROMPT=$P$G
PATH=%PATH%;C:.;A:.;..
LH SHARE
LH ZENO /Q
LH MOUSCLIP /M
LH DOSLFN /C- /Z:CP936UNI.TBL
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
IF %CONFIG%#==M4# IF NOT %RAMDRIVE%#==# NTFSDOS /U
LH ESCAPE
FINDCD /Q
CLS
WRITEXT 1 1 -f15 Note:
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 at 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 (in Chinese).
ECHO To start Chinese system for Chinese, type XZL at the command line.
WRITEXT 0+ 1 "Any comments, please come to the forum at: " -f15 http://dosbbs.2ya.com/ -f7
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
GOTO END
:LH
SET DIF=
LH VC
:END
ECHO.


2003-7-27 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
6618
中级用户




积分 356
发帖 54
注册 2003-4-15
状态 离线
『第 2 楼』:  

没人顶,自己顶!真应了一句话:求人不如求已!

2003-7-28 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
沈洁
金牌会员

小飞侠


积分 4590
发帖 1812
注册 2003-4-2
来自 上海市
状态 离线
『第 3 楼』:  

基本上除了Wengier版主外没人能全部看懂,
还是找Wengier好好聊聊吧!




2003-7-28 00:00
查看资料  发送邮件  发短消息 网志  OICQ (49662411)  编辑帖子  回复  引用回复
Roy
管理员

專業島民



积分 4869
发帖 1633
注册 2002-12-10
状态 离线
『第 4 楼』:  



  Quote:
以下是引用沈洁在2003-7-28 11:48:40的发言:
基本上除了Wengier版主外没人能全部看懂,
还是找Wengier好好聊聊吧!

To 沈洁:我看懂!!
To 6618:你不懂哪裡?我可以告訴你



我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
2003-7-28 00:00
查看资料  发短消息 网志   编辑帖子  回复  引用回复
沈洁
金牌会员

小飞侠


积分 4590
发帖 1812
注册 2003-4-2
来自 上海市
状态 离线
『第 5 楼』:  

大体上还是看的懂得,
就是其中的部分软件没有用过啊!



2003-7-28 00:00
查看资料  发送邮件  发短消息 网志  OICQ (49662411)  编辑帖子  回复  引用回复
dsm75
中级用户

5 M


积分 238
发帖 44
注册 2003-3-15
状态 离线
『第 6 楼』:  

其实有了wbat 的text功能 WRITEXT 文件是多余的

2003-7-28 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: