|
mengxok
新手上路

积分 3
发帖 2
注册 2007-10-14
状态 离线
|
『楼 主』:
请大家帮我解释一个批处理文件中的几条命令
使用 LLM 解释/回答一下
@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
这是我从东海GHOST上提取的直接启动GHOST的批处理,我实在是不懂MSCDEX.EXE /D:PATACD01 /D:SATACD01 /D:SATACD02 /D:SATACD03 /D:USB-CD
(MSCDEX.EXE 后面的指令是什么意思?能帮我一条一条解释吗?)
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
(CALL语言不是用来启动另一个批处理的吗怎么能跟findcdr ?“ghost.exe"后跟的一串字母是什么意思?
ghost.exe -crcignore -fro -fx
( -crcignore -fro -fx是什么意思?)
请高手解释一下好不好
(这只是启动GHOST而不是恢复系统。)
@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.)
|
|
2007-10-19 19:47 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
对 dos 下的命令行不熟悉
Not familiar with command lines under DOS
|
|
2007-10-19 20:34 |
|
|
knoppix7
银牌会员
    
积分 1287
发帖 634
注册 2007-5-2 来自 cmd.exe
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
问题1:自己搜索MSCDEX.EXE的帮助
问题2:call 同样能启动程序.后面的字母貌似是参数
问题3:查ghost命令行帮助去
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
|
|
2007-10-20 09:36 |
|
|
nayezi
初级用户
 
积分 48
发帖 20
注册 2007-10-17
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
MSCDEX.EXE是dos的cd-rom扩展命令。MSCDEX.DEX的语法是:
MSCDEX/D:
/D:driverl是MSCDEX.EXE命令中一个必需的参数。它为CD-ROM指定一个驱动器名,通常
的驱动器名是MACD000。这个驱动器名,必须同CDNFIG.SYS中设备驱动程序的/D参数匹配。
当为系统安装第二台CD-ROM驱动器时,重复此参数,驱动器名改为MSCD001。每个CD-ROM驱动
器必须有唯一的驱动器名。
/E规定如系统有可供使用的扩页内存(EMS),则用扩页内存储存扇区缓冲区。
/K表示MS_DOS将支持日本汉语的CD-ROM卷标,在默认情况下是不支持的。
/S允许在网络环境Windows for Workgroup环境中共享CD-ROM驱动器。
/V统计加载MSCDEX.EXE后系统的内存情况,并显示。
/L:letter赋予第一个CD-ROM驱动器一个指定逻辑驱动器名,如有多个CD-ROM驱动器,则
将其后字母赋予它。
/M指定要使用的扇区缓冲区个数。
例如:
C:\DOS\MSCDEX D:\MSCD000 D:\MSCD001/L:G/H
这条命令设置了两个CD-ROM驱动器,驱动器名分别为MSCD000和MSCD001,逻辑驱动器名分别为G和H,并在扩页内存中开辟扇缓冲区。在DOS提示下键入H:回车,即可进第一个CD-ROM驱动器。
至于PADA和SATA,SATA俗称串口硬盘,而PADA俗称并口硬盘。
”findcdr“,请楼主注意这的“cdr”是CD-ROM的缩写,(很多dos命令并非内部命令,理解时要注意该文件夹下的第三方命令行工具)至于后面跟的一长串字母,指的是从C到Z驱动器,LZ在提取代码时应该把“%CDROM%:”带上,这样便于理解。最后的ghost参数问题,-CRCIGNORE:尽量忽略映象文件中的错误,-FRO:强制即使有坏的簇也继续复制,-FX:当完成复制后退出程序。连起来就是在刻盘过程中ghost提示错误的话可以到纯dos下通过命令行进行强制刻盘,有一定几率修复硬盘坏道!ghost是一个很强大的工具,很多命令行,LZ可到网上搜索查询。
Last edited by nayezi on 2007-10-20 at 07:11 PM ]
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 ]
|
|
2007-10-20 19:06 |
|
|
regvip2008
初级用户
 
积分 187
发帖 87
注册 2007-10-23
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
nayezi兄果然厉害!由于本人的积分有限,不然会多加几分的!
Brother nayezi is really amazing! Since my points are limited, otherwise I would add more points!
|
|
2007-10-26 08:50 |
|
|
yoxu
初级用户
 
积分 99
发帖 35
注册 2008-2-19
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
LH MSCDEX.EXE /D:PATACD01 /D:SATACD01 /D:SATACD02 /D:SATACD03 /D:USB-CD
这个起到什么作用?
What is the function of this?
|
|
2009-1-1 01:33 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 7 楼』:
Re 3楼
使用 LLM 解释/回答一下
LOADHIGH (LH)
将程序装入到上端内存区。将程序装入到上端内存区可保留更多的常规内存空间供其它程序使用(有关内存优化的信息,见《MS-DOS 6.22用户手册》“获得更多的可用内存”一章)。
语法 :
LOADHIGH filename
要指定程序装入的内存区,应使用以下语法:
LOADHIGH ...] ]
filename
LOADHIGH可缩写为LH。
开关项 :
/L:region1...]
指定程序装入的内存区。若未使用/L,则MS-DOS将程序装入最大的自由上端内存块(UMB),并将其它可用的UMBs提供给此程序使用。用/L可指定程序装入的特定内存区或程序可使用的内存区。
在/L 开关后指定区号,可将程序装入到指定区中最大的自由内存块中。例如,要将程序装入到第4区最大的自由内存块中,应输入/L:4 (输入MEM /F命令行可列出自由内存区)。
使用/L 开关时,程序只能使用指定的内存区。对于要用多个内存区的程序来说,可指定多个区(使用MEM /M 命令并将程序名作为参数给出,就可查看程序的内存使用情况)。指定多个区时,用分号(;)隔开内存块号。 例如,要使用内存块2和3,应输入/L:2 ; 3 。
通常,MS-DOS将程序装入到包含超过程序装入大小的UMB 的指定内存区(程序装入大小通常等于可执行文件的大小)。若程序运行时所需空间大于装入大小,则可使用minsize参数来保证程序不会被装入到小于运行所需空间的UMB中。MS-DOS会将程序装入到大于程序装入大小和minsize 指定大小的UMB 中。
/S
装入程序时将UMB缩小成最小尺寸。使用此开关可最有效地使用内存。此开关通常只由MemMaker程序使用。MemMaker可分析程序的内存使用情况以决定在装入程序时使用此开关是否安全。此开关只能和/L 开关一起使用,并且只影响指定了最小尺寸的UMB。
参数:
filename
指定要装入的程序位置和名字。
parameters
指定程序所需的命令行参数。
相关命令 :
有关将设备驱动程序装入上端内存的信息,见<DEVICEHIGH>命令。
有关使用MemMaker将程序移到上端内存区的信息,见 <MEMMAKER>命令。
LOADHIGH (LH)─注解
要求DOS=UMB命令
在使用LOADHIGH命令之前,必须在COMFIG.SYS文件中加入DOS=UMB命令。有关DOS=UMB命令更多的信息,见<DOS> 命令。
使用MemMaker自动优化上端内存区
MS-DOS 6.22中包括的MemMaker程序可自动优化系统内存的使用。MemMaker扫描上端内存,分析驱动程序和应用程序的内存使用情况来决定最适合于装入可用UMB中的程序。MemMaker将LOADHIGH命令加入AUTOEXEC.BAT文件,并在需要时指定/L和/S开关。有关MemMaker更多的信息,见《MS-DOS 6.22用户手册》中“获得更多的可用内存”一章。
必须安装上端内存管理程序
在能将程序装入到上端内存区之前,必须安装上端内存管理程序。MS-DOS为80386或更高档的计算机提供EMM386.EXE来管理上端内存。在CONFIG.SYS文件中用DEVICE命令就可安装EMM386(安装HIMEM.SYS扩展内存管理程序的DEVICE命令必须在安装EMM386的DEVIECE命令之前)
LOADHIGH的工作原理
使用LOADHIGH装入程序时,MS-DOS会试着将程序装入到上端内存区。若上端内存区不够,MS-DOS就将程序装入到常规内存。使用MEM /M命令并指定程序名,就可查出程序是否使用了UMB。
在AUTOEXEC.BAT文件中使用LOADHIGH
使用LOADHIGH命令最方便的方法是在AUTOEXEC.BAT中使用LOADHIGH命令。(若使用了MemMaker程序,该程序会自动将所需的LOADHIGH命令加入到AUTOEXEC.BAT文件中。)
LOADHIGH (LH)─例子
下列命令行将DOSKEY程序装入上端内存区,并指定MS-DOS将程序装入内存区1:
loadhigh /l:1 c:\dos\doskey
下列命令行将MYPROG.EXE程序装入内存区1,并让程序可使用上端内存区3和4:
lh /L:1;3;4 c:\programs\myprog.exe
以下命令行将MYPROG程序装入常规内存(0区)并让程序可存取上端内存1区:
loadhigh /l:0;1 c:\programs\myprog.exe
LOADHIGH (LH)
Load the program into the upper memory area. Loading the program into the upper memory area can reserve more conventional memory space for other programs to use (for information on memory optimization, see the "Get More Available Memory" chapter in the "MS-DOS 6.22 User's Manual").
Syntax:
LOADHIGH filename
To specify the memory area where the program is loaded, use the following syntax:
LOADHIGH ...] ]
filename
LOADHIGH can be abbreviated as LH.
Switch options:
/L:region1...]
Specify the memory area where the program is loaded. If /L is not used, MS-DOS will load the program into the largest free upper memory block (UMB) and make other available UMBs available to this program. Using /L can specify the specific memory area where the program is loaded or the memory area that the program can use.
Specify the area number after the /L switch to load the program into the largest free memory block in the specified area. For example, to load the program into the largest free memory block in area 4, enter /L:4 (enter the MEM /F command line to list free memory areas).
When using the /L switch, the program can only use the specified memory area. For a program that needs to use multiple memory areas, multiple areas can be specified (use the MEM /M command and give the program name as a parameter to view the memory usage of the program). When specifying multiple areas, separate the memory block numbers with a semicolon (;). For example, to use memory blocks 2 and 3, enter /L:2 ; 3.
Usually, MS-DOS loads the program into the specified memory area containing the UMB that exceeds the program loading size (the program loading size is usually equal to the size of the executable file). If the space required by the program during operation is larger than the loading size, the minsize parameter can be used to ensure that the program is not loaded into a UMB smaller than the space required for operation. MS-DOS will load the program into a UMB larger than the program loading size and the size specified by minsize.
/S
Shrink the UMB to the minimum size when loading the program. Using this switch can use memory most efficiently. This switch is usually only used by the MemMaker program. MemMaker can analyze the memory usage of the program to determine whether it is safe to use this switch when loading the program. This switch can only be used with the /L switch and only affects UMBs that specify a minimum size.
Parameters:
filename
Specify the location and name of the program to be loaded.
parameters
Specify the command-line parameters required by the program.
Related commands:
For information on loading device drivers into the upper memory, see the <DEVICEHIGH> command.
For information on using MemMaker to move programs to the upper memory area, see the <MEMMAKER> command.
LOADHIGH (LH)─Notes
Requirement: DOS=UMB command
Before using the LOADHIGH command, you must add the DOS=UMB command in the CONFIG.SYS file. For more information on the DOS=UMB command, see the <DOS> command.
Automatically optimizing the upper memory area using MemMaker
The MemMaker program included in MS-DOS 6.22 can automatically optimize the use of system memory. MemMaker scans the upper memory, analyzes the memory usage of drivers and applications to determine the programs most suitable for loading into available UMBs. MemMaker adds the LOADHIGH command to the AUTOEXEC.BAT file and specifies /L and /S switches when needed. For more information on MemMaker, see the "Get More Available Memory" chapter in the "MS-DOS 6.22 User's Manual".
Must install an upper memory manager
Before being able to load programs into the upper memory area, an upper memory manager must be installed. MS-DOS provides EMM386.EXE for 80386 or higher computers to manage upper memory. You can install EMM386 using the DEVICE command in the CONFIG.SYS file (the DEVICE command for installing the HIMEM.SYS extended memory manager must come before the DEVICE command for installing EMM386)
How LOADHIGH works
When using LOADHIGH to load a program, MS-DOS will try to load the program into the upper memory area. If the upper memory area is not enough, MS-DOS will load the program into conventional memory. Use the MEM /M command and specify the program name to find out whether the program uses UMB.
Using LOADHIGH in AUTOEXEC.BAT
The most convenient way to use the LOADHIGH command is to use the LOADHIGH command in AUTOEXEC.BAT. (If the MemMaker program is used, the program will automatically add the required LOADHIGH command to the AUTOEXEC.BAT file.)
LOADHIGH (LH)─Examples
The following command line loads the DOSKEY program into the upper memory area and specifies that MS-DOS loads the program into memory area 1:
loadhigh /l:1 c:\dos\doskey
The following command line loads the MYPROG.EXE program into memory area 1 and allows the program to use upper memory areas 3 and 4:
lh /L:1;3;4 c:\programs\myprog.exe
The following command line loads the MYPROG program into conventional memory (area 0) and allows the program to access upper memory area 1:
loadhigh /l:0;1 c:\programs\myprog.exe
|

 |
|
2009-1-1 18:33 |
|
|
earth123xinyuan
社区乞丐
积分 -46
发帖 25
注册 2009-2-9 来自 内蒙
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
好啊!太好了…今天可是没少学东西阿
Great! That's wonderful... I've learned a lot today.
|
|
2009-2-10 13:04 |
|