|
anson
初级用户
 
积分 321
发帖 66
注册 2003-5-22
状态 离线
|
『楼 主』:
请问这个批处理点理解?可以详细解释下吗?
使用 LLM 解释/回答一下
@ECHO OFF
SET DIRCMD=/O
set ramdrv=z:
a:\xmsdsk 4096 %ramdrv% /y /t
echo.
echo Preparing base files to drive Z, please stand by...
echo.
copy a:\io.sys z: >nul
copy a:\msdos.sys z: >nul
mkdir %ramdrv%\bin
mkdir %ramdrv%\doscmd
mkdir %ramdrv%\temp
set tmp=%ramdrv%\temp
set temp=%ramdrv%\temp
set ebddir=%ramdrv%\doscmd
set path=%ramdrv%\bin
copy a:\command.com %ramdrv%\ >nul
set comspec=%ramdrv%\command.com
copy a:\readme.txt %ramdrv%\bin >nul
copy a:\readme.bat %ramdrv%\bin >nul
copy a:\extract.exe %ramdrv%\bin >nul
copy a:\device.com %ramdrv%\bin >nul
extract /y /l %ramdrv%\bin /e a:\menu.cab >nul
extract /y /l %ramdrv%\doscmd /e a:\ebd.cab >nul
set path=%path%;%ramdrv%\doscmd
func -v
func -v
startup.bat
如果改成启动光盘又应该点改? 多谢各位先了~!
@ECHO OFF
SET DIRCMD=/O
set ramdrv=z:
a:\xmsdsk 4096 %ramdrv% /y /t
echo.
echo Preparing base files to drive Z, please stand by...
echo.
copy a:\io.sys z: >nul
copy a:\msdos.sys z: >nul
mkdir %ramdrv%\bin
mkdir %ramdrv%\doscmd
mkdir %ramdrv%\temp
set tmp=%ramdrv%\temp
set temp=%ramdrv%\temp
set ebddir=%ramdrv%\doscmd
set path=%ramdrv%\bin
copy a:\command.com %ramdrv%\ >nul
set comspec=%ramdrv%\command.com
copy a:\readme.txt %ramdrv%\bin >nul
copy a:\readme.bat %ramdrv%\bin >nul
copy a:\extract.exe %ramdrv%\bin >nul
copy a:\device.com %ramdrv%\bin >nul
extract /y /l %ramdrv%\bin /e a:\menu.cab >nul
extract /y /l %ramdrv%\doscmd /e a:\ebd.cab >nul
set path=%path%;%ramdrv%\doscmd
func -v
func -v
startup.bat
If it is changed to a bootable CD, how should it be modified? Thanks to everyone first!
|
|
2003-6-4 00:00 |
|
|
anson
初级用户
 
积分 321
发帖 66
注册 2003-5-22
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
解答我的问题啦~~~!很急的!
Answer your question~~~! Very urgent!
|
|
2003-6-5 00:00 |
|
|
lydong
元老会员
        
积分 1468
发帖 407
注册 2002-10-21 来自 广州
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
这个批文件其实是比较好理解的,如:
@ECHO OFF ;屏蔽多余的显示信息
SET DIRCMD=/O ;设置DIR的环境变量,使执行DIR时按顺序排列目录和文件夹
set ramdrv=z: ;设置变量“ ramdrv”的值为“z:”
a:\xmsdsk 4096 %ramdrv% /y /t ;建立虚拟盘,指定盘符为变量“ ramdrv”,即“z:”
echo. ;显示空行
echo Preparing base files to drive Z, please stand by...
echo.
copy a:\io.sys z: >nul ;复制文件到z:,并屏蔽显示结果,以下部份语句类似;
copy a:\msdos.sys z: >nul
mkdir %ramdrv%\bin ;建立新目录,即:z:\bin
mkdir %ramdrv%\doscmd
mkdir %ramdrv%\temp
set tmp=%ramdrv%\temp ;设置临时文件夹
set temp=%ramdrv%\temp ;设置临时文件夹
set ebddir=%ramdrv%\doscmd ;设置变量
set path=%ramdrv%\bin ;设置命令查找路径
copy a:\command.com %ramdrv%\>nul
set comspec=%ramdrv%\command.com ;设置命令解释器路径
copy a:\readme.txt %ramdrv%\bin >nul
copy a:\readme.bat %ramdrv%\bin >nul
copy a:\extract.exe %ramdrv%\bin >nul
copy a:\device.com %ramdrv%\bin >nul
extract /y /l %ramdrv%\bin /e a:\menu.cab >nul ;解压缩文件到%ramdrv%\bin(即Z:\bin)
extract /y /l %ramdrv%\doscmd /e a:\ebd.cab >nul
set path=%path%;%ramdrv%\doscmd
func -v
func -v
startup.bat
因为启动光盘是模拟A盘启动的,所以就这个文件本身来说,基本上不需做大的修改。如果您想启动光驱支持的话,需要加入光驱驱动程序才行。
This batch file is actually relatively easy to understand, for example:
@ECHO OFF ;Suppress redundant display information
SET DIRCMD=/O ;Set the environment variable of DIR, so that when executing DIR, it will arrange directories and folders in order
set ramdrv=z: ;Set the value of variable "ramdrv" to "z:"
a:\xmsdsk 4096 %ramdrv% /y /t ;Create a virtual disk, specify the drive letter as variable "ramdrv", that is "z:"
echo. ;Display a blank line
echo Preparing base files to drive Z, please stand by...
echo.
copy a:\io.sys z: >nul ;Copy files to z:, and suppress the display result, the following parts of the statements are similar;
copy a:\msdos.sys z: >nul
mkdir %ramdrv%\bin ;Create a new directory, that is: z:\bin
mkdir %ramdrv%\doscmd
mkdir %ramdrv%\temp
set tmp=%ramdrv%\temp ;Set the temporary folder
set temp=%ramdrv%\temp ;Set the temporary folder
set ebddir=%ramdrv%\doscmd ;Set the variable
set path=%ramdrv%\bin ;Set the command search path
copy a:\command.com %ramdrv%\>nul
set comspec=%ramdrv%\command.com ;Set the command interpreter path
copy a:\readme.txt %ramdrv%\bin >nul
copy a:\readme.bat %ramdrv%\bin >nul
copy a:\extract.exe %ramdrv%\bin >nul
copy a:\device.com %ramdrv%\bin >nul
extract /y /l %ramdrv%\bin /e a:\menu.cab >nul ;Extract files to %ramdrv%\bin (that is Z:\bin)
extract /y /l %ramdrv%\doscmd /e a:\ebd.cab >nul
set path=%path%;%ramdrv%\doscmd
func -v
func -v
startup.bat
Because the boot CD is booted by simulating drive A, so as far as this file itself is concerned, basically no major modifications are needed. If you want to support the CD drive, you need to add the CD drive driver.
|

欢迎大家观临我的个人主页:
http://dosdiy.bluepc.com.cn/
http://dosdiy.ys168.com/
EMAIL: lydong@china.com.cn lydong@yeah.net
----------------------------------------------
|
|
2003-6-5 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
这个批处理是pkmater编写的吧。
Is this batch script written by pkmater?
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2003-6-5 00:00 |
|
|
anson
初级用户
 
积分 321
发帖 66
注册 2003-5-22
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
以下是引用Wengier在2003-6-5 0:41:05的发言:
这个批处理是pkmater编写的吧。
嗯~~~!但我想将他的中文启动盘做成启动光盘!
Below is the quote of Wengier's speech on 2003-6-5 0:41:05:
This batch script was written by pkmater, right?
Hmm~~~! But I want to make his Chinese bootable disk into a bootable CD!
|
|
2003-6-5 00:00 |
|
|
anson
初级用户
 
积分 321
发帖 66
注册 2003-5-22
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
以下是引用lydong在2003-6-5 0:38:22的发言:
这个批文件其实是比较好理解的,如:
@ECHO OFF ;屏蔽多余的显示信息
SET DIRCMD=/O ;设置DIR的环境变量,使执行DIR时按顺序排列目录和文件夹
set ramdrv=z: ;设置变量“ ramdrv”的值为“z:”
a:\xmsdsk 4096 %ramdrv% /y /t ;建立虚拟盘,指定盘符为变量“ ramdrv”,即“z:”
echo. ;显示空行
echo Preparing base files to drive Z, please stand by...
echo.
copy a:\io.sys z: >nul ;复制文件到z:,并屏蔽显示结果,以下部份语句类似;
copy a:\msdos.sys z: >nul
mkdir %ramdrv%\bin ;建立新目录,即:z:\bin
mkdir %ramdrv%\doscmd
mkdir %ramdrv%\temp
set tmp=%ramdrv%\temp ;设置临时文件夹
set temp=%ramdrv%\temp ;设置临时文件夹
set ebddir=%ramdrv%\doscmd ;设置变量
set path=%ramdrv%\bin ;设置命令查找路径
copy a:\command.com %ramdrv%\>nul
set comspec=%ramdrv%\command.com ;设置命令解释器路径
copy a:\readme.txt %ramdrv%\bin >nul
copy a:\readme.bat %ramdrv%\bin >nul
copy a:\extract.exe %ramdrv%\bin >nul
copy a:\device.com %ramdrv%\bin >nul
extract /y /l %ramdrv%\bin /e a:\menu.cab >nul ;解压缩文件到%ramdrv%\bin(即Z:\bin)
extract /y /l %ramdrv%\doscmd /e a:\ebd.cab >nul
set path=%path%;%ramdrv%\doscmd
func -v
func -v
startup.bat
因为启动光盘是模拟A盘启动的,所以就这个文件本身来说,基本上不需做大的修改。如果您想启动光驱支持的话,需要加入光驱驱动程序才行。
具体怎样修改和加入光驱驱程呢?
The following is a quote from lydong on 2003-6-5 0:38:22:
This batch file is actually relatively easy to understand. For example:
@ECHO OFF ;Suppress redundant display information
SET DIRCMD=/O ;Set the environment variable for DIR, so that when DIR is executed, directories and folders are arranged in order
set ramdrv=z: ;Set the value of the variable "ramdrv" to "z:"
a:\xmsdsk 4096 %ramdrv% /y /t ;Create a virtual disk, specify the drive letter as the variable "ramdrv", that is, "z:"
echo. ;Display a blank line
echo Preparing base files to drive Z, please stand by...
echo.
copy a:\io.sys z: >nul ;Copy the file to z:, and suppress the display result. The following parts of the statements are similar;
copy a:\msdos.sys z: >nul
mkdir %ramdrv%\bin ;Create a new directory, that is: z:\bin
mkdir %ramdrv%\doscmd
mkdir %ramdrv%\temp
set tmp=%ramdrv%\temp ;Set the temporary folder
set temp=%ramdrv%\temp ;Set the temporary folder
set ebddir=%ramdrv%\doscmd ;Set the variable
set path=%ramdrv%\bin ;Set the command search path
copy a:\command.com %ramdrv%\>nul
set comspec=%ramdrv%\command.com ;Set the command interpreter path
copy a:\readme.txt %ramdrv%\bin >nul
copy a:\readme.bat %ramdrv%\bin >nul
copy a:\extract.exe %ramdrv%\bin >nul
copy a:\device.com %ramdrv%\bin >nul
extract /y /l %ramdrv%\bin /e a:\menu.cab >nul ;Extract the file to %ramdrv%\bin (that is, Z:\bin)
extract /y /l %ramdrv%\doscmd /e a:\ebd.cab >nul
set path=%path%;%ramdrv%\doscmd
func -v
func -v
startup.bat
Because the boot CD is booted by simulating drive A, so for this file itself, basically no major modifications are needed. If you want to support the optical drive, you need to add the optical drive driver.
How to specifically modify and add the optical drive driver?
|
|
2003-6-5 00:00 |
|
|
lydong
元老会员
        
积分 1468
发帖 407
注册 2002-10-21 来自 广州
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
先将光驱驱动程序(如:Vide-cdd.sys 和 MSCDEX.EXE/Shsucdx.exe )拷贝到A盘中,然后在config.sys中加入如下语句:
DEVICEHIGH=Vide-cdd.sys /D:MSCD001
再在AUTOEXEC.BAT中加入:
MSCDEX.EXE /D:MSCD001 (或:Shsucdx.exe /D:MSCD001 )
First, copy the CD-ROM drive drivers (such as Vide-cdd.sys and MSCDEX.EXE/Shsucdx.exe) to the A drive. Then add the following statement in config.sys:
DEVICEHIGH=Vide-cdd.sys /D:MSCD001
Then add in AUTOEXEC.BAT:
MSCDEX.EXE /D:MSCD001 (or: Shsucdx.exe /D:MSCD001 )
|

欢迎大家观临我的个人主页:
http://dosdiy.bluepc.com.cn/
http://dosdiy.ys168.com/
EMAIL: lydong@china.com.cn lydong@yeah.net
----------------------------------------------
|
|
2003-6-5 00:00 |
|
|
anson
初级用户
 
积分 321
发帖 66
注册 2003-5-22
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
MSCDEX.EXE /D:MSCD001 (或:Shsucdx.exe /D:MSCD001 )---->加在AUTOEXEC.BAT的哪个位置~?
MSCDEX.EXE /D:MSCD001 (or: Shsucdx.exe /D:MSCD001) ----> Where to add it in AUTOEXEC.BAT?
|
|
2003-6-5 00:00 |
|
|
yiyesong
元老会员
        
积分 1987
发帖 632
注册 2002-10-27
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
第一段最后一行吧,最好是用LH MSCDEX.EXE /D:MSCD001。
The last line of the first paragraph, it is best to use LH MSCDEX.EXE /D:MSCD001.
|

http://dos.e-stone.cn/dosbbs
uploadImages/200311161145850422.swf
|
|
2003-6-5 00:00 |
|
|
anson
初级用户
 
积分 321
发帖 66
注册 2003-5-22
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
............
a:\xmsdsk 4096 %ramdrv% /y /t
MSCDEX.EXE /D:MSCD001
这样吗?
............
a:\xmsdsk 4096 %ramdrv% /y /t
MSCDEX.EXE /D:MSCD001
Is this so?
|
|
2003-6-5 00:00 |
|
|
如是大师
元老会员
         步行的人
积分 9654
发帖 3351
注册 2003-3-11 来自 湖北
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
嗯。。什么地方都没关系的。。这个批文件没有变量也没有选项。。。。
Um.. It doesn't matter where. .. This batch file has no variables and no options. ..
|

弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾 |
|
2003-6-5 00:00 |
|