|
枯井无波
初级用户
 
积分 146
发帖 10
注册 2004-3-10
状态 离线
|
『楼 主』:
DOS使用方法
使用 LLM 解释/回答一下
要想操作使用DOS,知道一些常用命令是非常重要的。以下是一些命令的用法。
文件名是由文件路径和文件名称合起来的,如C:\DOS\COMMAND.COM。
DIR 显示文件和文件夹(目录)。
用法:DIR
它有很多选项,如/A表示显示所有文件(即包括带隐含和系统属性的文件),/S表示也显示子文件夹中的文件,/P表示分屏显示,/B表示只显示文件名,等等。
如 DIR A*.EXE /A /P
此命令分屏显示当前文件夹下所有以A开头后缀为EXE的文件(夹)。
CD或CHDIR 改变当前文件夹。
用法:CD
若无文件夹名则显示当前路径。
MD或MKDIR 建立文件夹。
用法:MD 文件夹名
RD或RMDIR 删除文件夹。
用法:RD 文件夹名
注意:此文件夹必须是空的。
DEL或ERASE 删除文件。
用法:DEL/ERASE 文件名
COPY 拷贝文件。
用法: COPY 文件名1
如 COPY /B A+B C
此命令将两个二进制文件A和B合为一个文件C。
TYPE 显示文件内容。
用法:TYPE 文件名
REN或RENAME 改变文件名,在DOS7中还可以改变文件夹名。
用法:REN 文件(夹)名1 文件(夹)名2
EDIT 编辑文件,在DOS7中还可以编辑二进制文件。
用法:EDIT
如 EDIT /70 C:\COMMAND.COM
此命令以二进制方式编辑C:\COMMAND.COM文件。
FORMAT 格式化磁盘。
用法:FORMAT 驱动器
它的选项很多,如/Q是快速格式化,/U表示无条件格式化(即无法使用UNFORMAT等命令恢复),/V指定磁盘的卷标名,等等。它还有许多未公开参数。
MEM 显示内存状态。
用法:MEM
它的选项也有不少,如/C可列出所有程序的内存占用,/D是显示驻留内存的程序及设备驱动程序的状态等详细信息,/F显示空闲的内存总量,/M显示内存中的模块信息,/P则是分屏显示。还有隐藏的/A选项,可以显示HMA信息。
MOVE 移动文件或文件夹,还可以更改文件或文件夹的名称。
用法:MOVE 文件1 文件2
如 MOVE C:\*.EXE D:
此命令可以将C盘根文件夹下所有扩展名为EXE的文件移到D盘上。
XCOPY 复制文件或文件夹。
用法:XCOPY 文件名1 名2]
它的选项非常多,如/S可拷贝整个文件夹(包括子文件夹)中的文件,/E指定包括空文件夹,/V表示复制完后检验复制出的文件的正确性,/Y表示确认,等等。
CLS 清除屏幕。
用法:CLS
SYS 传导系统,即将系统文件(如IO.SYS等)从一处传输到指定的驱动器中。
用法:SYS 文件夹名
如 SYS C:\DOS A:
此命令即可将位于C:\DOS文件夹下的系统文件传输到A盘中。
DATE 显示或设置日期。
用法:DATE
TIME 显示或设置时间。
用法:TIME
DOS还自带一些其它的命令,如SORT(排序),FIND(寻找字符)等。
To operate and use DOS, it is very important to know some common commands. The following are the usages of some commands.
A file name is composed of a file path and a file name, for example, C:\DOS\COMMAND.COM.
DIR displays files and folders (directories).
Usage: DIR
It has many options, such as /A to display all files (that is, including files with hidden and system attributes), /S to also display files in subfolders, /P to display page by page, /B to only display file names, etc.
For example, DIR A*.EXE /A /P
This command displays page by page all files (folders) starting with A and with the suffix EXE in the current folder.
CD or CHDIR changes the current folder.
Usage: CD
If there is no folder name, it displays the current path.
MD or MKDIR creates a folder.
Usage: MD folder name
RD or RMDIR deletes a folder.
Usage: RD folder name
Note: This folder must be empty.
DEL or ERASE deletes a file.
Usage: DEL/ERASE file name
COPY copies a file.
Usage: COPY file name 1
For example, COPY /B A+B C
This command combines two binary files A and B into one file C.
TYPE displays the content of a file.
Usage: TYPE file name
REN or RENAME changes the file name, and in DOS7, it can also change the folder name.
Usage: REN file (folder) name 1 file (folder) name 2
EDIT edits a file, and in DOS7, it can also edit binary files.
Usage: EDIT
For example, EDIT /70 C:\COMMAND.COM
This command edits the C:\COMMAND.COM file in binary mode.
FORMAT formats a disk.
Usage: FORMAT drive
It has many options, such as /Q for quick format, /U for unconditional format (that is, cannot be restored using commands like UNFORMAT, etc.), /V to specify the volume label name of the disk, etc. It also has many undocumented parameters.
MEM displays the memory status.
Usage: MEM
Its options also have quite a few, such as /C to list the memory usage of all programs, /D to display detailed information such as the status of resident programs and device drivers, /F to display the total amount of free memory, /M to display module information in memory, /P to display page by page. There is also a hidden /A option, which can display HMA information.
MOVE moves a file or folder, and can also change the name of a file or folder.
Usage: MOVE file 1 file 2
For example, MOVE C:\*.EXE D:
This command can move all files with the extension EXE in the root folder of drive C to drive D.
XCOPY copies a file or folder.
Usage: XCOPY file name 1 name 2]
Its options are very many, such as /S to copy all files in a folder (including subfolders), /E to specify including empty folders, /V to check the correctness of the copied files after copying, /Y to confirm, etc.
CLS clears the screen.
Usage: CLS
SYS transmits the system, that is, transmits system files (such as IO.SYS, etc.) from one place to a specified drive.
Usage: SYS folder name
For example, SYS C:\DOS A:
This command can transmit the system files located in the C:\DOS folder to drive A.
DATE displays or sets the date.
Usage: DATE
TIME displays or sets the time.
Usage: TIME
DOS also comes with some other commands, such as SORT (sorting), FIND (finding characters), etc.
|
|
2004-3-11 00:00 |
|
|
doscommand
银牌会员
    
积分 1141
发帖 148
注册 2004-3-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
以下是引用枯井无波在2004-3-11 17:44:00的发言:
要想操作使用DOS,知道一些常用命令是非常重要的。以下是一些命令的用法。
文件名是由文件路径和文件名称合起来的,如C:\DOS\COMMAND.COM。
DIR 显示文件和文件夹(目录)。
用法:DIR
它有很多选项,如/A表示显示所有文件(即包括带隐含和系统属性的文件),/S表示也显示子文件夹中的文件,/P表示分屏显示,/B表示只显示文件名,等等。
如 DIR A*.EXE /A /P
此命令分屏显示当前文件夹下所有以A开头后缀为EXE的文件(夹)。
CD或CHDIR 改变当前文件夹。
用法:CD
若无文件夹名则显示当前路径。
MD或MKDIR 建立文件夹。
用法:MD 文件夹名
RD或RMDIR 删除文件夹。
用法:RD 文件夹名
注意:此文件夹必须是空的。
DEL或ERASE 删除文件。
用法:DEL/ERASE 文件名
COPY 拷贝文件。
用法: COPY 文件名1
如 COPY /B A+B C
此命令将两个二进制文件A和B合为一个文件C。
TYPE 显示文件内容。
用法:TYPE 文件名
REN或RENAME 改变文件名,在DOS7中还可以改变文件夹名。
用法:REN 文件(夹)名1 文件(夹)名2
EDIT 编辑文件,在DOS7中还可以编辑二进制文件。
用法:EDIT
如 EDIT /70 C:\COMMAND.COM
此命令以二进制方式编辑C:\COMMAND.COM文件。
FORMAT 格式化磁盘。
用法:FORMAT 驱动器
它的选项很多,如/Q是快速格式化,/U表示无条件格式化(即无法使用UNFORMAT等命令恢复),/V指定磁盘的卷标名,等等。它还有许多未公开参数。
MEM 显示内存状态。
用法:MEM
它的选项也有不少,如/C可列出所有程序的内存占用,/D是显示驻留内存的程序及设备驱动程序的状态等详细信息,/F显示空闲的内存总量,/M显示内存中的模块信息,/P则是分屏显示。还有隐藏的/A选项,可以显示HMA信息。
MOVE 移动文件或文件夹,还可以更改文件或文件夹的名称。
用法:MOVE 文件1 文件2
如 MOVE C:\*.EXE D:
此命令可以将C盘根文件夹下所有扩展名为EXE的文件移到D盘上。
XCOPY 复制文件或文件夹。
用法:XCOPY 文件名1 名2]
它的选项非常多,如/S可拷贝整个文件夹(包括子文件夹)中的文件,/E指定包括空文件夹,/V表示复制完后检验复制出的文件的正确性,/Y表示确认,等等。
CLS 清除屏幕。
用法:CLS
SYS 传导系统,即将系统文件(如IO.SYS等)从一处传输到指定的驱动器中。
用法:SYS 文件夹名
如 SYS C:\DOS A:
此命令即可将位于C:\DOS文件夹下的系统文件传输到A盘中。
DATE 显示或设置日期。
用法:DATE
TIME 显示或设置时间。
用法:TIME
DOS还自带一些其它的命令,如SORT(排序),FIND(寻找字符)等。
Hostname:显示计算机的名称。
IPconfig:显示IP地址,可以用IPCONFIG/?来帮助。
The following is the speech quoted by Kujing Wubo on 2004-3-11 17:44:00:
To operate and use DOS, it is very important to know some common commands. The following are the usages of some commands.
The file name is composed of the file path and the file name, such as C:\DOS\COMMAND.COM.
DIR displays files and folders (directories).
Usage: DIR
It has many options, such as /A to display all files (that is, including files with hidden and system attributes), /S to also display files in subfolders, /P to display in pages, /B to only display file names, and so on. For example, DIR A*.EXE /A /P
This command displays all files (folders) starting with A and with the suffix EXE in the current folder in pages.
CD or CHDIR changes the current folder.
Usage: CD
If there is no folder name, it displays the current path.
MD or MKDIR creates a folder.
Usage: MD folder name
RD or RMDIR deletes a folder.
Usage: RD folder name
Note: This folder must be empty.
DEL or ERASE deletes a file.
Usage: DEL/ERASE file name
COPY copies files.
Usage: COPY file name 1
For example, COPY /B A+B C
This command combines two binary files A and B into one file C.
TYPE displays the content of a file.
Usage: TYPE file name
REN or RENAME changes the file name. In DOS7, it can also change the folder name.
Usage: REN file (folder) name 1 file (folder) name 2
EDIT edits a file. In DOS7, it can also edit binary files.
Usage: EDIT
For example, EDIT /70 C:\COMMAND.COM
This command edits the C:\COMMAND.COM file in binary mode.
FORMAT formats a disk.
Usage: FORMAT drive
It has many options, such as /Q for quick format, /U for unconditional format (that is, cannot be restored using commands like UNFORMAT), /V to specify the volume label of the disk, and so on. It also has many undocumented parameters.
MEM displays the memory status.
Usage: MEM
It also has quite a few options, such as /C to list the memory usage of all programs, /D to display detailed information about resident programs and device drivers, /F to display the total amount of free memory, /M to display module information in memory, /P to display in pages. There is also the hidden /A option, which can display HMA information.
MOVE moves files or folders, and can also change the name of files or folders.
Usage: MOVE file 1 file 2
For example, MOVE C:\*.EXE D:
This command can move all files with the extension EXE in the root folder of drive C to drive D.
XCOPY copies files or folders.
Usage: XCOPY file name 1 name 2]
It has very many options, such as /S to copy all files in the folder (including subfolders), /E to specify including empty folders, /V to verify the correctness of the copied files after copying, /Y to confirm, and so on.
CLS clears the screen.
Usage: CLS
SYS transfers the system, that is, transfers system files (such as IO.SYS, etc.) from one place to the specified drive.
Usage: SYS folder name
For example, SYS C:\DOS A:
This command can transfer the system files located in the C:\DOS folder to drive A.
DATE displays or sets the date.
Usage: DATE
TIME displays or sets the time.
Usage: TIME
DOS also comes with some other commands, such as SORT (sorting), FIND (finding characters), etc.
Hostname: displays the name of the computer.
IPconfig: displays the IP address, and can use IPCONFIG /? for assistance.
|
|
2004-3-12 00:00 |
|
|