![]() |
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-08-11 09:55 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Please help me explain a few commands in a batch file |
| Printable Version 2,135 / 7 |
| Floor1 mengxok | Posted 2007-10-19 19:47 |
| 新手上路 Posts 2 Credits 3 | |
|
@ECHO OFF
LH MSCDEX.EXE /D:PATACD01 /D:SATACD01 /D:SATACD02 /D:SATACD03 /D:USB-CD findcd /s>nul call findcdr "ghost.exe" C D E F G H I J K L M N O P Q R S T U V W X Y Z %CDROM%: mouse.exe ghost.exe -crcignore -fro -fx ezboot.com This is a batch script extracted from Donghai GHOST to directly boot GHOST. I really don't understand what the instructions after MSCDEX.EXE mean? Can you explain them one by one? call findcdr "ghost.exe" C D E F G H I J K L M N O P Q R S T U V W X Y Z (Isn't the CALL language used to start another batch script? How can it be followed by findcdr? What does the string of letters after "ghost.exe" mean? ghost.exe -crcignore -fro -fx (What do -crcignore -fro -fx mean?) Please explain it for the expert, okay (This is just to start GHOST, not to restore the system.) |
|
| Floor2 vkill | Posted 2007-10-19 20:34 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
Not familiar with command lines under DOS
|
|
| Floor3 knoppix7 | Posted 2007-10-20 09:36 |
| 银牌会员 Posts 634 Credits 1,287 From cmd.exe | |
|
Question 1: Search for the help of MSCDEX.EXE by yourself
Question 2: call can also start a program. The following letters seem to be parameters Question 3: Check the command-line help of ghost |
|
| Floor4 nayezi | Posted 2007-10-20 19:06 |
| 初级用户 Posts 20 Credits 48 | |
|
MSCDEX.EXE is the CD-ROM extension command of DOS. The syntax of MSCDEX.DEX is:
MSCDEX /D: /D:driverl is a required parameter in the MSCDEX.EXE command. It specifies a drive name for the CD-ROM. The usual drive name is MACD000. This drive name must match the /D parameter of the device driver in CDNFIG.SYS. When installing a second CD-ROM drive for the system, repeat this parameter, and the drive name is changed to MSCD001. Each CD-ROM drive must have a unique drive name. /E means that if there is extended memory (EMS) available in the system, use extended memory to store the sector buffer. /K means that MS_DOS will support CD-ROM volume labels in Japanese Chinese, which is not supported by default. /S allows sharing the CD-ROM drive in a network environment and Windows for Workgroup environment. /V counts the memory situation of the system after loading MSCDEX.EXE and displays it. /L:letter assigns a specified logical drive name to the first CD-ROM drive. If there are multiple CD-ROM drives, the subsequent letters are assigned to it. /M specifies the number of sector buffers to use. For example: C:\DOS\MSCDEX D:\MSCD000 D:\MSCD001 /L:G /H This command sets up two CD-ROM drives, with drive names MSCD000 and MSCD001 respectively, logical drive names G and H respectively, and sector buffers are allocated in extended memory. Type H: at the DOS prompt and press Enter to enter the first CD-ROM drive. As for PADA and SATA, SATA is commonly known as serial hard disk, and PADA is commonly known as parallel hard disk. "findcdr", please note that "cdr" here is an abbreviation of CD-ROM (many DOS commands are not internal commands, pay attention to the third-party command-line tools in this folder when understanding). As for the long string of letters that follow, it refers to drives from C to Z. LZ should bring "%CDROM%:" when extracting the code, which is convenient for understanding. The last issue of the ghost parameter: -CRCIGNORE: try to ignore errors in the image file, -FRO: force to continue copying even if there are bad clusters, -FX: exit the program after copying is completed. Connected together, it means that if ghost prompts an error during the disc burning process, you can use the command line in pure DOS to force disc burning, which has a certain chance to repair hard disk bad sectors! ghost is a very powerful tool, there are many command lines, LZ can search online for query. [ Last edited by nayezi on 2007-10-20 at 07:11 PM ] |
|
| Floor5 regvip2008 | Posted 2007-10-26 08:50 |
| 初级用户 Posts 87 Credits 187 | |
|
Brother nayezi is really amazing! Since my points are limited, otherwise I would add more points!
|
|
| Floor6 yoxu | Posted 2009-01-01 01:33 |
| 初级用户 Posts 35 Credits 99 | |
|
What is the function of this?
|
|
| Floor7 HAT | Posted 2009-01-01 18:33 |
| 版主 Posts 5,017 Credits 9,023 | |
LOADHIGH (LH) |
|
| Floor8 earth123xinyuan | Posted 2009-02-10 13:04 |
| 社区乞丐 Posts 25 Credits -46 From 内蒙 | |
|
Great! That's wonderful... I've learned a lot today.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |