![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-23 12:53 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » May I ask for an explanation of this batch processing point? Can you explain it in detail? |
| Printable Version 3,157 / 10 |
| Floor1 anson | Posted 2003-06-04 00:00 |
| 初级用户 Posts 66 Credits 321 | |
|
@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! |
|
| Floor2 anson | Posted 2003-06-05 00:00 |
| 初级用户 Posts 66 Credits 321 | |
|
Answer your question~~~! Very urgent!
|
|
| Floor3 Lydong | Posted 2003-06-05 00:00 |
| 元老会员 Posts 407 Credits 1,468 From 广州 | |
|
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. |
|
| Floor4 Wengier | Posted 2003-06-05 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Is this batch script written by pkmater?
|
|
| Floor5 anson | Posted 2003-06-05 00:00 |
| 初级用户 Posts 66 Credits 321 | |
Below is the quote of Wengier's speech on 2003-6-5 0:41:05: Hmm~~~! But I want to make his Chinese bootable disk into a bootable CD! |
|
| Floor6 anson | Posted 2003-06-05 00:00 |
| 初级用户 Posts 66 Credits 321 | |
The following is a quote from lydong on 2003-6-5 0:38:22: How to specifically modify and add the optical drive driver? |
|
| Floor7 Lydong | Posted 2003-06-05 00:00 |
| 元老会员 Posts 407 Credits 1,468 From 广州 | |
|
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 ) |
|
| Floor8 anson | Posted 2003-06-05 00:00 |
| 初级用户 Posts 66 Credits 321 | |
|
MSCDEX.EXE /D:MSCD001 (or: Shsucdx.exe /D:MSCD001) ----> Where to add it in AUTOEXEC.BAT?
|
|
| Floor9 yiyesong | Posted 2003-06-05 00:00 |
| 元老会员 Posts 632 Credits 1,987 | |
|
The last line of the first paragraph, it is best to use LH MSCDEX.EXE /D:MSCD001.
|
|
| Floor10 anson | Posted 2003-06-05 00:00 |
| 初级用户 Posts 66 Credits 321 | |
|
............
a:\xmsdsk 4096 %ramdrv% /y /t MSCDEX.EXE /D:MSCD001 Is this so? |
|
| Floor11 如是大师 | Posted 2003-06-05 00:00 |
| 元老会员 Posts 3,351 Credits 9,654 From 湖北 | |
|
Um.. It doesn't matter where. .. This batch file has no variables and no options. ..
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |