|
如是大师
元老会员
         步行的人
积分 9654
发帖 3351
注册 2003-3-11 来自 湖北
状态 离线
|
『楼 主』:
[推荐]批处理的教学
使用 LLM 解释/回答一下
(批处理文件是由一个或一个以上的DOS命令及可执行命令组成的带有扩展名.BAT的文件。当用户以批处理文件名为命令时,DOS会自动依次执行文件中的命令。批处理文件的特点是一次建立可多次执行。
在批处理文件中有一个特殊的批处理文件,每次启动计算机时,系统自动执行该文件中的每一条命令。该文件必须满足两个条件:一是文件名为AUTOEXEC.BAT,二是该文件的位置必须放在启动盘(也可称为系统盘)的根目录下。
在批处理文件中除了使用DOS命令之外,还可使用批处理子命令,这些命令也可看作DOS的内部命令,它们是:
1)ECHO--显示方式设置;其中ECHO ON是使以后的命令在执行前先显示,ECHO OFF是使以后的命令在执行前不显示,ECHO MASSAGE 是不论ECHO的状态为ON或OFF,都显示MESSAGE所指定的信息。
2)REM--注释命令。
3)PAUSE--暂停系统处理,系统显示Press any key to continue…,等待用户按任意一个键后继续执行。
4)GOTO--转向子命令。
5)IF--条件子命令。
6)FOR--循环子命令。
7)SHIFT--改变参数的位置。
电脑每次启动时都会寻找autoexec.bat这条批处理文件,从而可执行一些每次开机都要执行的命令,如设置路径path、加载鼠标驱动mouse、磁盘加速smartdrv等,可以使您的电脑真正自动化。
echo、@、call、pause、rem 是批处理文件最常用的几个命令,我们就从他们开始学起。 echo 表示显示此命令后的字符
echo off 表示在此语句后所有运行的命令都不显示命令行本身
@ 与echo off相象,但它是加在其它命令行的最前面,表示运行时不显示命令行本身。
call 调用另一条批处理文件(如果直接调用别的批处理文件 ,执行完那条文件后将无法执行当前文件后续命令)
pause 运行此句会暂停,显示Press any key to continue... 等待用户按任意键后继续
rem 表示此命令后的字符为解释行,不执行,只是给自己今后查找用的
例:用edit编辑a.bat文件,输入下列内容后存盘为c:\a.bat,执行该批处理文件后可实现:将根目录中所有文件写入 a.txt中,启动UCDOS,进入WPS等功能。
批处理文件的内容为: 文件表示:
echo off 不显示命令行
dir c:\*.* >a.txt 将c盘文件列表写入a.txt
call c:\ucdos\ucdos.bat 调用ucdos
echo 你好 显示"你好"
pause 暂停,等待按键继续
rem 使用wps 注释将使用wps
cd ucdos 进入ucdos目录
wps 使用wps
批处理文件中还可以像C语言一样使用参数,这只需用到一个参数表示符%。
%表示参数,参数是指在运行批处理文件时在文件名后加的字符串。变量可以从 %0到%9,%0表示文件名本身,字符串用%1到%9顺序表示。
例如,C:根目录下一批处理文件名为f.bat,内容为 format %1
则如果执行C:\>f a: 则实际执行的是format a:
又如C:根目录下一批处理文件的名为t.bat,内容为 type %1 type %2
那么运行C:\>t a.txt b.txt 将顺序地显示a.txt和b.txt文件的内容
if goto choice for 是批处理文件中比较高级的命令,如果这几个你用得很熟练,你就是批处理文件的专家啦。
if 表示将判断是否符合规定的条件,从而决定执行不同的命令。 有三种格式:
1、if "参数" == "字符串" 待执行的命令
参数如果等于指定的字符串,则条件成立,运行命令,否则运行下一句。(注意是两个等号)
如if "%1"=="a" format a:
2、if exist 文件名 待执行的命令
如果有指定的文件,则条件成立,运行命令,否则运行下一句。如if exist config.sys edit config.sys
3、if errorlevel 数字 待执行的命令
如果返回码等于指定的数字,则条件成立,运行命令,否则运行下一句。如if errorlevel 2 goto x2 DOS程序运行时都会返回一个数字给DOS,称为错误码errorlevel或称返回码
goto 批处理文件运行到这里将跳到goto 所指定的标号处, 一般与if配合使用。 如:
goto end
:end
echo this is the end
标号用 :字符串 表示,标号所在行不被执行
choice 使用此命令可以让用户输入一个字符,从而运行不同的命令。使用时应该加/c:参数,c:后应写提示可输入的字符,之间无空格。它的返回码为1234……
如: choice /c:dme defrag,mem,end
将显示
defrag,mem,end[D,M,E]?
例如,test.bat的内容如下:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag 应先判断数值最高的错误码
if errorlevel 2 goto mem
if errotlevel 1 goto end
:defrag
c:\dos\defrag
goto end
:mem
mem
goto end
:end
echo good bye
此文件运行后,将显示 defrag,mem,end[D,M,E]? 用户可选择d m e ,然后if语句将作出判断,d表示执行标号为defrag的程序段,m表示执行标号为mem的程序段,e表示执行标号为end的程序段,每个程序段最后都以goto end将程序跳到end标号处,然后程序将显示good bye,文件结束。
for 循环命令,只要条件符合,它将多次执行同一命令。
格式FOR [%%f] in (集合) DO [命令]
只要参数f在指定的集合内,则条件成立,执行命令
如果一条批处理文件中有一行:
for %%c in (*.bat *.txt) do type %%c
含义是如果是以bat或txt结尾的文件,则显示文件的内容。
DOS在启动会自动运行autoexec.bat这条文件,一般我们在里面装载每次必用的程序,如: path(设置路径)、smartdrv(磁盘加速)、 mouse(鼠标启动)、mscdex(光驱连接)、 doskey(键盘管理)、set(设置环境变量)等。
如果启动盘根目录中没有这个文件,电脑会让用户输入日期和时间。
例如,一个典型的autoexec.bat内容如下:
@echo off 不显示命令行
prompt $p$g 设置提示符前有目录提示
path c:\dos;c:\;c:\windows;c:\ucdos;c:\tools 设置路径
lh c:\dos\doskey.com 加载键盘管理
lh c:\mouse\mouse.com 加载鼠标管理
lh c:\dos\smartdrv.exe 加载磁盘加速管理
lh c:\dos\mscdex /S /D:MSCD000 /M:12 /V 加载CD-ROM驱动
set temp=c:\temp 设置临时目录
Batch files are files with the extension .BAT composed of one or more DOS commands and executable commands. When the user uses the batch file name as a command, DOS will automatically execute the commands in the file in sequence one by one. The characteristic of batch files is that they can be established once and executed multiple times.
There is a special batch file in batch files. Every time the computer is started, the system automatically executes each command in this file. This file must meet two conditions: first, the file name is AUTOEXEC.BAT, and second, the location of this file must be in the root directory of the boot disk (also called the system disk).
In batch files, in addition to using DOS commands, batch subcommands can also be used. These commands can also be regarded as internal commands of DOS. They are:
1) ECHO - Display mode setting; where ECHO ON makes the subsequent commands display before execution, ECHO OFF makes the subsequent commands not display before execution, and ECHO MESSAGE displays the information specified by MESSAGE regardless of the state of ECHO being ON or OFF.
2) REM - Comment command.
3) PAUSE - Pause the system processing. The system displays "Press any key to continue…" and waits for the user to press any key to continue execution.
4) GOTO - Transfer subcommand.
5) IF - Conditional subcommand.
6) FOR - Loop subcommand.
7) SHIFT - Change the position of parameters.
The computer looks for the autoexec.bat batch file every time it starts, so that some commands that need to be executed every time the computer is turned on can be executed, such as setting the path path, loading the mouse driver mouse, disk acceleration smartdrv, etc., which can truly automate your computer.
echo, @, call, pause, rem are several of the most commonly used commands in batch files. We start learning from them. echo means to display the characters after this command. echo off means that all running commands after this statement do not display the command line itself. @ is similar to echo off, but it is added at the front of other command lines, indicating that the command line itself is not displayed during operation. call calls another batch file (if you directly call another batch file, you will not be able to execute the subsequent commands of the current file after executing that file). pause running this sentence will pause, display "Press any key to continue...", and wait for the user to press any key to continue. rem means that the characters after this command are explanation lines, which are not executed, just for future self-finding.
Example: Use edit to edit the a.bat file, enter the following content and save it as c:\a.bat. After executing this batch file, the functions of writing all files in the root directory into a.txt, starting UCDOS, entering WPS, etc. can be realized.
The content of the batch file is: File representation:
echo off Do not display the command line
dir c:\*.* >a.txt Write the file list of drive C into a.txt
call c:\ucdos\ucdos.bat Call ucdos
echo Hello Display "Hello"
pause Pause, wait for the key to continue
rem Use WPS Comment that WPS will be used
cd ucdos Enter the ucdos directory
wps Use WPS
Parameters can also be used in batch files like in the C language, which only requires a parameter identifier %.
% represents a parameter, and the parameter refers to the string added after the file name when running the batch file. Variables can range from %0 to %9, %0 represents the file name itself, and the strings are represented in sequence by %1 to %9.
For example, there is a batch file named f.bat in the root directory of C, and the content is format %1.
Then if you execute C:\>f a:, the actual execution is format a:.
Another example: There is a batch file named t.bat in the root directory of C, and the content is type %1 type %2.
Then running C:\>t a.txt b.txt will sequentially display the contents of the a.txt and b.txt files.
if goto choice for are relatively advanced commands in batch files. If you are very proficient in these, you are an expert in batch files. if means to judge whether the specified condition is met, so as to decide to execute different commands. There are three formats:
1. if "parameter" == "string" command to be executed. If the parameter is equal to the specified string, the condition is established, and the command is run; otherwise, the next sentence is run. (Note that there are two equal signs) For example, if "%1"=="a" format a:.
2. if exist file name command to be executed. If the specified file exists, the condition is established, and the command is run; otherwise, the next sentence is run. For example, if exist config.sys edit config.sys.
3. if errorlevel number command to be executed. If the return code is equal to the specified number, the condition is established, and the command is run; otherwise, the next sentence is run. For example, if errorlevel 2 goto x2. All DOS programs return a number to DOS when running, which is called the error code errorlevel or return code.
goto The batch file will jump to the label specified by goto when it runs here. It is generally used in conjunction with if. For example:
goto end
:end
echo this is the end
The label is represented by :string, and the line where the label is located is not executed.
choice Using this command can let the user enter a character, so as to run different commands. When using it, the /c: parameter should be added. The characters that can be entered should be written after c:, with no spaces in between. Its return code is 1234...
For example: choice /c:dme defrag,mem,end
It will display
defrag,mem,end?
For example, the content of test.bat is as follows:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag should judge the highest numerical error code first
if errorlevel 2 goto mem
if errotlevel 1 goto end
:defrag
c:\dos\defrag
goto end
:mem
mem
goto end
:end
echo good bye
After this file runs, it will display defrag,mem,end? The user can choose d m e, and then the if statement will make a judgment. d means to execute the program segment labeled defrag, m means to execute the program segment labeled mem, e means to execute the program segment labeled end. Each program segment ends with goto end to jump the program to the end label, and then the program will display good bye, and the file ends.
The for loop command will execute the same command multiple times as long as the condition is met.
Format FOR in (collection) DO
As long as the parameter f is in the specified collection, the condition is established, and the command is executed.
If there is a line in a batch file:
for %%c in (*.bat *.txt) do type %%c
It means that if the file ends with bat or txt, the content of the file is displayed.
DOS will automatically run the autoexec.bat file when it starts. Generally, we load the programs that are used every time in it, such as: path (set path), smartdrv (disk acceleration), mouse (mouse start), mscdex (CD-ROM connection), doskey (keyboard management), set (set environment variables), etc.
If this file is not in the root directory of the boot disk, the computer will ask the user to enter the date and time.
For example, a typical autoexec.bat content is as follows:
@echo off Do not display the command line
prompt $p$g Set the directory prompt before the prompt
path c:\dos;c:\;c:\windows;c:\ucdos;c:\tools Set the path
lh c:\dos\doskey.com Load keyboard management
lh c:\mouse\mouse.com Load mouse management
lh c:\dos\smartdrv.exe Load disk acceleration management
lh c:\dos\mscdex /S /D:MSCD000 /M:12 /V Load CD-ROM driver
set temp=c:\temp Set the temporary directory
|

弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾 |
|
2003-5-4 00:00 |
|
|
如是大师
元老会员
         步行的人
积分 9654
发帖 3351
注册 2003-3-11 来自 湖北
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
一些危险的命令会被某些有心人写进批处理文件中去,在网上四处传播搞破坏,例如在.bat中写进:
deltree -y c:兡
接下来的事情就是你赶紧拿条手巾擦眼泪吧。从这个意义上说它比病毒还要恶毒。
类似的,在.hlp(帮助文件)、.pif(指向DOS的快捷方式)、.lnk(WINDOWS快捷方式)这些文件中也可以写入危险的命令,如果不小心执行了那就危险了。防范以上调用DOS命令进行破坏的文件,被动的做法是通过将format、deltree这类命令改名换姓。
(一)应用DOS重定向功能
DOS的标准输入输出通常是在标准设备键盘和显示器上进行的, 利用重定向,可以方便地将输入输出改向磁盘文件或其它设备。如在批处理命令执行期间为了禁止命令或程序执行后输出信息而扰乱屏幕, 可用DOS重定向功能把输出改向NUL设备(NUL不指向任何实际设备): C:\>COPY A.TXT B.TXT > NUL。
命令执行结束不显示"1 file(s) copied"的信息。有的交互程序在执行时要求很多键盘输入, 但有时输入是固定不变的, 为加快运行速度, 可预先建立一个输入文件,此文件的内容为程序的键盘输入项, 每个输入项占一行。假如有一个程序ZB, 其输入项全部包括在文件IN.DAT中, 执行 C:\>ZB NUL 程序就自动执行。
(二)应用DOS管道功能
DOS的管道功能是使一个程序或命令的标准输出用做另一个程序或命令的标准输入。如把DEBUG的输入命令写入文件AAA, 用TYPE命令通过管道功能将AAA的内容传输给DEBUG, 在DEBUG执行期间不再从控制台索取命令参数, 从而提高了机器效率。命令为: C:\>TYPE AAA|DEBUG >BBB。
(三)子程序
在一个批处理文件可用CALL命令调用另一个子批处理文件, 当子批文件执行结束后,自动返回父批文件, 继续向下执行。如: A.BAT B.BAT,A调用B,A.BAT内容如下:
@ECHO OFF
CALL B
CD \BASIC
BASICA BG
@ECHO ON
(四)菜单选择功能
DOS功能调用31H或4CH所提供的一字节的返回码, 通过批处理子命令IF和ERRORLEVEL对返回码进行处理, 可达到自动执行一批命令的目的。在批处理文件中实现高级语言所有的菜单提示功能, 使批处理文件变得更灵活方便。先用DEBUG建立一个菜单驱动程序MENU.COM,对应地编写一个批处理文件LG.BAT。具体内容和方法见下表:
DEBUG
-A
-166C:0100 MOV DX,111
-166C:0103 MOV AH,09
-166C:0105 INT 21
-166C:0107 MOV AH,01
-166C:0109 INT 21
-166C:010B MOV AH,4C
-166C:010D INT 21
-166C:010F INT 20
-166C:0111 DB '******************************'0D 0A
-166C:0131 DB '* 1.Turbo Pascal 5.00 *'0D 0A
-166C:0151 DB '* 2.Turbo Basci 1.00 *'0D 0A
-166C:0171 DB '* 3.Turbo Prolog 2.00 *'0D 0A
-166C:0191 DB '* 4.Turbo C 2.00 *'0D 0A
-166C:01B1 DB '* 0.Exit *'0D 0A
-166C:01B1 DB '******************************'0D 0A
-166C:01F1 DB 'Your choice(0..4) : '24 0D 0A 1A
-166C:0209
-R CX
CX 0000
:108
-N MENU.COM
-W
Writing 0108 bytes
-Q
@ECHO OFF:
START
CLS
MENU
IF ERRORLEVEL 52 GOTO C
IF ERRORLEVEL 51 GOTO PRO
IF ERRORLEVEL 50 GOTO BAS
IF ERRORLEVEL 49 GOTO PAS
IF ERRORLEVEL 48 GOTO EX
CLS
GOTO START
:PAS
CD \TP5.00
TURBO
CD \
GOTO START
:BAS
CD \TB
TB
CD \
GOTO START
:PRO
CD \TPROLOG
PROLOG
CD \
GOTO START
:C
CD \TURBOC
TC
CD \
GOTO START
:EX
@ECHO ON
执行LG, 屏幕左上角出现一个菜单, 并提示用户输入选择, 当选择的功能执行结束,重新返回主菜单请求选择, 直到选择"0"号功能, 程序结束返回DOS。
(五)应用命令处理程序完成大量重复工作
DOS提供调用次级命令程序的方法, 可实现与子程序等效的功能, 在MS DOS3.3以前的DOS版本下非常有用。如你有一批FORTRAN源程序需要编译, 首先编写两个批文件MAKEOBJ.BAT、C.BAT, 然后执行MAKEOBJ, 即可把当前目录下的所有扩展名为.FOR的FORTRAN源程序编译成OBJ文件。这种方法迅速正确, 人机交互少, 减轻了程序员的的大量劳动。
MAKEOBJ.BAT C.BAT
@ECHO OFF
ECHO COMPILE FORTRAN PROGRAMS.
FOR %%A IN (*.FOR) DO COMMAND /C C %%A
ECHO FINISH !
@ECHO ON @ECHO OFF
ECHO ------ COMPILE %1 ------
FOR1 %1; >NUL
FOR2 >NUL
@ECHO ON
Some dangerous commands can be written into batch files by some malicious people and spread online to cause damage. For example, writing in a.bat:
deltree -y c:兡
Then the next thing is that you quickly need to get a towel to wipe your tears. In this sense, it is more vicious than a virus.
Similarly, dangerous commands can also be written into files such as.hlp (help files),.pif (shortcut to DOS),.lnk (WINDOWS shortcut). If executed carelessly, it will be dangerous. To prevent files that call DOS commands for destruction, a passive approach is to rename commands like format, deltree, etc.
(1) Applying DOS redirection function
The standard input and output of DOS are usually on the standard devices keyboard and display. Using redirection, input and output can be easily redirected to disk files or other devices. For example, during the execution of a batch command, to prohibit the output information from disturbing the screen after the command or program is executed, the DOS redirection function can be used to redirect the output to the NUL device (NUL does not point to any actual device): C:\>COPY A.TXT B.TXT > NUL.
The information "1 file(s) copied" will not be displayed after the command is executed. Some interactive programs require a lot of keyboard input during execution, but sometimes the input is fixed. To speed up the operation, an input file can be established in advance. The content of this file is the keyboard input items of the program, and each input item occupies one line. Suppose there is a program ZB, and all its input items are included in the file IN.DAT. Executing C:\>ZB NUL will automatically execute the program.
(2) Applying DOS pipeline function
The DOS pipeline function makes the standard output of one program or command used as the standard input of another program or command. For example, write the input command of DEBUG into a file AAA, and use the TYPE command to transfer the content of AAA to DEBUG through the pipeline function. During the execution of DEBUG, no command parameters will be requested from the console, thereby improving the machine efficiency. The command is: C:\>TYPE AAA|DEBUG >BBB.
(3) Subroutine
A batch file can use the CALL command to call another sub-batch file. When the sub-batch file is executed, it will automatically return to the parent batch file and continue to execute downward. For example: A.BAT B.BAT, A calls B. The content of A.BAT is as follows:
@ECHO OFF
CALL B
CD \BASIC
BASICA BG
@ECHO ON
(4) Menu selection function
The one-byte return code provided by DOS function calls 31H or 4CH. By using the batch sub-commands IF and ERRORLEVEL to process the return code, the purpose of automatically executing a batch of commands can be achieved. The menu prompt function of all high-level languages can be realized in the batch file, making the batch file more flexible and convenient. First, use DEBUG to create a menu-driven program MENU.COM, and correspondingly write a batch file LG.BAT. The specific content and method are shown in the following table:
DEBUG
-A
-166C:0100 MOV DX,111
-166C:0103 MOV AH,09
-166C:0105 INT 21
-166C:0107 MOV AH,01
-166C:0109 INT 21
-166C:010B MOV AH,4C
-166C:010D INT 21
-166C:010F INT 20
-166C:0111 DB '******************************'0D 0A
-166C:0131 DB '* 1.Turbo Pascal 5.00 *'0D 0A
-166C:0151 DB '* 2.Turbo Basci 1.00 *'0D 0A
-166C:0171 DB '* 3.Turbo Prolog 2.00 *'0D 0A
-166C:0191 DB '* 4.Turbo C 2.00 *'0D 0A
-166C:01B1 DB '* 0.Exit *'0D 0A
-166C:01B1 DB '******************************'0D 0A
-166C:01F1 DB 'Your choice(0..4) : '24 0D 0A 1A
-166C:0209
-R CX
CX 0000
:108
-N MENU.COM
-W
Writing 0108 bytes
-Q
@ECHO OFF:
START
CLS
MENU
IF ERRORLEVEL 52 GOTO C
IF ERRORLEVEL 51 GOTO PRO
IF ERRORLEVEL 50 GOTO BAS
IF ERRORLEVEL 49 GOTO PAS
IF ERRORLEVEL 48 GOTO EX
CLS
GOTO START
:PAS
CD \TP5.00
TURBO
CD \
GOTO START
:BAS
CD \TB
TB
CD \
GOTO START
:PRO
CD \TPROLOG
PROLOG
CD \
GOTO START
:C
CD \TURBOC
TC
CD \
GOTO START
:EX
@ECHO ON
When executing LG, a menu appears in the upper left corner of the screen and prompts the user to enter a choice. When the selected function is executed, it returns to the main menu to request selection until the "0" function is selected, and the program ends and returns to DOS.
(5) Using the command processor to complete a large number of repetitive tasks
DOS provides a method to call secondary command programs, which can realize the function equivalent to subroutines, which is very useful under DOS versions before MS DOS3.3. For example, if you have a batch of FORTRAN source programs that need to be compiled, first write two batch files MAKEOBJ.BAT and C.BAT, and then execute MAKEOBJ, which can compile all FORTRAN source programs with the extension.FOR in the current directory into OBJ files. This method is fast and correct, with less human-computer interaction, and reduces a lot of labor for programmers.
MAKEOBJ.BAT C.BAT
@ECHO OFF
ECHO COMPILE FORTRAN PROGRAMS.
FOR %%A IN (*.FOR) DO COMMAND /C C %%A
ECHO FINISH !
@ECHO ON @ECHO OFF
ECHO ------ COMPILE %1 ------
FOR1 %1; >NUL
FOR2 >NUL
@ECHO ON
|

弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾 |
|
2003-5-4 00:00 |
|
|
龙卷风
初级用户
 
积分 198
发帖 28
注册 2003-5-3
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
第一篇贴子我会,请问如是大师,第二篇贴子的内容是哪里的?有没有这方面的书籍?
I know the first post, but Master Ru Shi, where is the content of the second post from? Are there any books on this aspect?
|
|
2003-5-4 00:00 |
|
|
如是大师
元老会员
         步行的人
积分 9654
发帖 3351
注册 2003-3-11 来自 湖北
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
这是我以前收录的具体来源就记不太清了。
完整的书籍目前我还没见到。。。。。。。。。都是些零星的资料。
The specific source I collected before is not very clear. I haven't seen the complete book yet... It's all some scattered materials.
|

弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾 |
|
2003-5-4 00:00 |
|
|
柏仔
初级用户
  DOS爱好者
积分 478
发帖 100
注册 2003-4-22
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
学到东西
|

||||||| 寻人启示:姓名:
| c●● ~年龄:20,性别:男
| ♂▃~ 特征:帅.很帅.酷.特别酷....
| |︺英俊潇洒.风流倜傥,玉树临风→我
单钓E时代论坛 |
|
2003-5-5 00:00 |
|
|
myd5g
初级用户
 
积分 221
发帖 38
注册 2003-4-10
状态 离线
|
|
2003-5-6 00:00 |
|
|
tanglu_sd
高级用户
   
积分 948
发帖 271
注册 2002-12-13 来自 sd
状态 离线
|
|
2003-5-6 00:00 |
|
|
seegoodlili
初级用户
 
积分 154
发帖 19
注册 2003-5-3
状态 离线
|
|
2003-5-8 00:00 |
|
|
linjun
初级用户
 
积分 138
发帖 11
注册 2003-5-4
状态 离线
|
|
2003-5-8 00:00 |
|
|
wymacu
初级用户
 
积分 105
发帖 1
注册 2003-5-16
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
前面的内容是WPS的
The preceding content is about WPS
|
|
2003-5-16 00:00 |
|
|
zgzjwz
初级用户
 
积分 227
发帖 28
注册 2004-5-15
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
呵呵 先顶上 ! 等浏览完这个论坛的全部帖子后再逐个收藏!!!
Hehe, first top it up! I'll collect them one by one after browsing all the posts in this forum!!!
|
|
2004-5-18 00:00 |
|
|
SagInvoker
初级用户
 
积分 257
发帖 38
注册 2004-5-20
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
可能是因为我比较菜吧,对于第二张帖子里做菜单那项我有一点不是很懂,为什么调用了中断21的4C以后还要调中断20呢?是不是有点多余,或者别有原因???
Maybe it's because I'm relatively inexperienced. I don't quite understand one point in the menu-making part of the second post. Why do we call interrupt 20 after calling interrupt 21's 4C? Is it a bit redundant, or is there some other reason???
|
|
2004-5-23 00:00 |
|
|
令狐清扬
初级用户
 
积分 142
发帖 9
注册 2004-5-18
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
对批处理文件多少有点了解,期待更多的,更全面的内容出现,谢谢楼主~
Have some understanding of batch files, looking forward to more and more comprehensive content appearing, thank you the building owner~
|
|
2004-5-24 00:00 |
|
|
bush
银牌会员
    
积分 2165
发帖 730
注册 2004-4-21
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
请问符号 # 在批处理中有什么作用?
我就这个不懂~
另外我的系统盘WIN98是E盘, C:、E:都有这个AUTOEXEC.BAT
What is the role of the symbol # in batch processing?
I just don't understand this~
In addition, my system disk WIN98 is drive E, and there are both AUTOEXEC.BAT in C: and E:
|
|
2004-5-24 00:00 |
|
|
SagInvoker
初级用户
 
积分 257
发帖 38
注册 2004-5-20
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
没听说#还有什么特殊作用的,如果是LINUX还可以说表示当前SHELL是BASH,DOS就没什么意思了,你联系全文看就懂了,肯定是个自定义的变量值
I haven't heard of # having any special functions. If it were Linux, it could mean that the current SHELL is BASH, but it's not meaningful for DOS. You can understand it by connecting with the full text. It must be a custom variable value
|
|
2004-5-24 00:00 |
|
|