|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『楼 主』:
dos命令详解(我也是新手)
使用 LLM 解释/回答一下
先从dir开始
DIR attributes]]
sortorder]] timefield]]
指定要列出的驱动器、目录和/或文件。
/A 显示具有指定属性的文件。
attributes D 目录 R 只读文件
H 隐藏文件 A 准备存档的文件
S 系统文件 - 表示“否”的前缀
/B 使用空格式(没有标题信息或摘要)。
/C 在文件大小中显示千位数分隔符。这是默认值。用 /-C 来
停用分隔符显示。
/D 跟宽式相同,但文件是按栏分类列出的。
/L 用小写。
/N 新的长列表格式,其中文件名在最右边。
/O 用分类顺序列出文件。
sortorder N 按名称(字母顺序) S 按大小(从小到大)
E 按扩展名(字母顺序) D 按日期/时间(从先到后)
G 组目录优先 - 颠倒顺序的前缀
/P 在每个信息屏幕后暂停。
/Q 显示文件所有者。
/S 显示指定目录和所有子目录中的文件。
/T 控制显示或用来分类的时间字符域。
timefield C 创建时间
A 上次访问时间
W 上次写入的时间
/W 用宽列表格式。
/X 显示为非 8dot3 文件名产生的短名称。格式是 /N 的格式,
短名称插在长名称前面。如果没有短名称,在其位置则
显示空白。
/4 用四位数字显示年
可以在 DIRCMD 环境变量中预先设定开关。通过添加前缀 - (破折号)
来替代预先设定的开关。例如,/-W。
Let's start with dir
DIR attributes]]
sortorder]] timefield]]
Specifies the drive, directory, and/or files to list.
/A Displays files with specified attributes.
attributes D directory R read-only file
H hidden file A file ready for archiving
S system file - prefix meaning "not"
/B Uses bare format (no header information or summary).
/C Displays thousand separator in file sizes. This is the default. Use /-C to
disable separator display.
/D Same as wide but files are listed in columns.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O Lists files in sorted order.
sortorder N by name (alphabetic) S by size (smallest first)
E by extension (alphabetic) D by date/time (oldest first)
G directories first - prefix to reverse order
/P Pauses after each screenful of information.
/Q Displays file owner.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field to display or use for sorting.
timefield C creation time
A last access time
W last written time
/W Uses wide list format.
/X Displays short names generated for non 8dot3 filenames. The format is that of /N with the short name inserted before the long name. If there is no short name, blanks are displayed in its place.
/4 Uses four-digit year
Switches may be pre-set in the DIRCMD environment variable. To override pre-set switches, prefix with - (hyphen). For example, /-W.
|
|
2003-11-27 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
cd
显示当前目录名或改变当前目录。
CHDIR
CHDIR
CD
CD
.. 指定要改成父目录。
键入 CD 驱动器: 显示指定驱动器中的当前目录。
不带参数只键入 CD,则显示当前驱动器和目录。
使用 /D 命令行开关,除了改变驱动器的当前目录之外,
还可改变当前驱动器。
如果扩展命令名被启用,CHDIR 会如下改变:
当前的目录字符串会被转换成使用磁盘名上的大小写。所以,
如果磁盘上的大小写如此,CD C : \TEMP 会将当前目录设为
C:\Temp。
CHDIR 命令不把空格当作分隔符,因此有可能将目录名改为一个
带有空格但不带有引号的子目录名。例如:
cd \winnt\profiles\username\programs\start menu
与下列相同:
cd "\winnt\profiles\username\programs\start menu"
在扩展功能停用的情况下,您必须键入以上命令。
cd
Displays the name of the current directory or changes the current directory.
CHDIR
CHDIR
CD
CD
.. Specifies to change to the parent directory.
Typing CD drive: displays the current directory on the specified drive.
Typing CD by itself displays the current drive and directory.
Using the /D command-line switch changes the current drive in addition to changing the current directory of the drive.
If extended command handling is enabled, CHDIR will change as follows:
The current directory string is converted to use the case of the letters on the disk. So, if the case on the disk is like this, CD C:\TEMP will set the current directory to C:\Temp.
The CHDIR command does not treat spaces as delimiters, so it is possible to change the directory name to a subdirectory name with spaces but without quotes. For example:
cd \winnt\profiles\username\programs\start menu
is the same as:
cd "\winnt\profiles\username\programs\start menu"
In the case where extended functionality is disabled, you must type the above command.
|
|
2003-11-27 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
创建目录。
MKDIR path
MD path
如果命令扩展名被启用,MKDIR 会如下改变:
如果需要,MKDIR 会在路径中创建中级目录。例如: 假设 \a 不
存在,那么:
mkdir \a\b\c\d
与:
mkdir \a
chdir \a
mkdir b
chdir b
mkdir c
chdir c
mkdir d
相同。如果扩展名被停用,则需要键入 mkdir \a\b\c\d。
Create directory.
MKDIR path
MD path
If command extensions are enabled, MKDIR will change as follows:
If necessary, MKDIR will create intermediate directories in the path. For example: Suppose \a does not exist, then:
mkdir \a\b\c\d
Is the same as:
mkdir \a
chdir \a
mkdir b
chdir b
mkdir c
chdir c
mkdir d
Same. If extensions are disabled, you need to type mkdir \a\b\c\d.
|
|
2003-11-27 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
删除一个目录。
RMDIR path
RD path
/S 除目录本身外,还将删除指定目录下的所有子目录和
文件。用于删除目录树。
/Q 安静模式,带 /S 删除目录树时不要求确认
Delete a directory.
RMDIR path
RD path
/S In addition to the directory itself, all subdirectories and
files under the specified directory will also be deleted. Used to delete the directory tree.
/Q Quiet mode, when deleting the directory tree with /S, no confirmation is required
|
|
2003-11-27 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
将一份或多份文件复制到另一个位置。
COPY source ]
source 指定要复制的文件。
/A 表示一个 ASCII 文本文件。
/B 表示一个二进位文件。
/D 允许解密要创建的目标文件
destination 为新文件指定目录和/或文件名。
/V 验证新文件写入是否正确。
/N 复制带有非 8dot3 名称的文件时,
尽可能使用短文件名。
/Y 不使用确认是否要改写现有目标文件
的提示。
/-Y 使用确认是否要改写现有目标文件
的提示。
/Z 用可重新启动模式复制已联网的文件。
命令行开关 /Y 可以在 COPYCMD 环境变量中预先设定。
这可能会被命令行上的 /-Y 替代。除非 COPY
命令是在一个批文件脚本中执行的,默认值应为
在改写时进行提示。
要附加文件,请为目标指定一个文件,为源指定
数个文件(用通配符或 file1+file2+file3 格式)。
Copy one or more files to another location.
COPY source ]
source Specifies the file(s) to copy.
/A Indicates an ASCII text file.
/B Indicates a binary file.
/D Allows decrypting the target file to be created
destination Specifies the directory and/or filename for the new file.
/V Verifies that new files are written correctly.
/N When copying a file with a non-8dot3 name, use the short filename
if possible.
/Y Suppresses prompting to confirm rewriting an existing target file.
/-Y Prompts to confirm rewriting an existing target file.
/Z Copies a networked file in restartable mode.
The command-line switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Unless the COPY command
is executed in a batch script, the default is to prompt on overwrite.
To append files, specify a single file for destination and several files for
source (using wildcards or file1+file2+file3 format).
|
|
2003-11-27 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
显示或更改文件属性。
ATTRIB filename] ]
+ 设置属性。
- 清除属性。
R 只读文件属性。
A 存档文件属性。
S 系统文件属性。
H 隐藏文件属性。
指定要处理的文件属性。
/S 处理当前文件夹及其子文件夹中的匹配文件。
/D 也处理文件夹。
Display or change file attributes.
ATTRIB filename] ]
+ Set attribute.
- Clear attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
Specify the file attributes to be processed.
/S Process matching files in the current folder and its subfolders.
/D Also process folders.
|
|
2003-11-27 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
以图形显示驱动器或路径的文件夹结构。
TREE
/F 显示每个文件夹中文件的名称。
/A 使用 ASCII 字符,而不使用扩展字符。
Display the folder structure of a drive or path graphically.
TREE
/F Displays the names of the files in each folder.
/A Uses ASCII characters instead of extended characters.
|
|
2003-11-27 00:00 |
|
|
tdj
银牌会员
     论坛候鸟
积分 1131
发帖 332
注册 2003-11-27
状态 离线
|
|
2003-11-27 00:00 |
|
|
龙王
银牌会员
    
积分 1186
发帖 334
注册 2003-5-30
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Why can't I find the delete button if the upload was not successful
|
|
2003-11-27 00:00 |
|
|
龙王
银牌会员
    
积分 1186
发帖 334
注册 2003-5-30
状态 离线
|
|
2003-11-27 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
我知道的一些命令
ASSOC 显示或修改文件扩展名关联。
AT 计划在计算机上运行的命令和程序。
ATTRIB 显示或更改文件属性。
BREAK 设置或清除扩展式 CTRL+C 检查。
CACLS 显示或修改文件的访问控制列表(ACLs)。
CALL 从另一个批处理程序调用这一个。
CD 显示当前目录的名称或将其更改。
CHCP 显示或设置活动代码页数。
CHDIR 显示当前目录的名称或将其更改。
CHKDSK 检查磁盘并显示状态报告。
CHKNTFS 显示或修改启动时间磁盘检查。
CLS 清除屏幕。
CMD 打开另一个 Windows 命令解释程序窗口。
COLOR 设置默认控制台前景和背景颜色。
COMP 比较两个或两套文件的内容。
COMPACT 显示或更改 NTFS 分区上文件的压缩。
CONVERT 将 FAT 卷转换成 NTFS。您不能转换
当前驱动器。
COPY 将至少一个文件复制到另一个位置。
DATE 显示或设置日期。
DEL 删除至少一个文件。
DIR 显示一个目录中的文件和子目录。
DISKCOMP 比较两个软盘的内容。
DISKCOPY 将一个软盘的内容复制到另一个软盘。
DOSKEY 编辑命令行、调用 Windows 命令并创建宏。
ECHO 显示消息,或将命令回显打开或关上。
ENDLOCAL 结束批文件中环境更改的本地化。
ERASE 删除至少一个文件。
EXIT 退出 CMD.EXE 程序(命令解释程序)。
FC 比较两个或两套文件,并显示
不同处。
FIND 在文件中搜索文字字符串。
FINDSTR 在文件中搜索字符串。
FOR 为一套文件中的每个文件运行一个指定的命令。
FORMAT 格式化磁盘,以便跟 Windows 使用。
FTYPE 显示或修改用于文件扩展名关联的文件类型。
GOTO 将 Windows 命令解释程序指向批处理程序
中某个标明的行。
GRAFTABL 启用 Windows 来以图像模式显示
扩展字符集。
HELP 提供 Windows 命令的帮助信息。
IF 执行批处理程序中的条件性处理。
LABEL 创建、更改或删除磁盘的卷标。
MD 创建目录。
MKDIR 创建目录。
MODE 配置系统设备。
MORE 一次显示一个结果屏幕。
MOVE 将文件从一个目录移到另一个目录。
PATH 显示或设置可执行文件的搜索路径。
PAUSE 暂停批文件的处理并显示消息。
POPD 还原 PUSHD 保存的当前目录的上一个值。
PRINT 打印文本文件。
PROMPT 更改 Windows 命令提示符。
PUSHD 保存当前目录,然后对其进行更改。
RD 删除目录。
RECOVER 从有问题的磁盘恢复可读信息。
REM 记录批文件或 CONFIG.SYS 中的注释。
REN 重命名文件。
RENAME 重命名文件。
REPLACE 替换文件。
RMDIR 删除目录。
SET 显示、设置或删除 Windows 环境变量。
SETLOCAL 开始批文件中环境更改的本地化。
SHIFT 更换批文件中可替换参数的位置。
SORT 对输入进行分类。
START 启动另一个窗口来运行指定的程序或命令。
SUBST 将路径跟一个驱动器号关联。
TIME 显示或设置系统时间。
TITLE 设置 CMD.EXE 会话的窗口标题。
TREE 以图形模式显示驱动器或路径的目录结构。
TYPE 显示文本文件的内容。
VER 显示 Windows 版本。
VERIFY 告诉 Windows 是否验证文件是否已正确
写入磁盘。
VOL 显示磁盘卷标和序列号。
XCOPY 复制文件和目录树。
Some Commands I Know
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies the access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of the current directory or changes it.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of the current directory or changes it.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the boot-time disk check.
CLS Clears the screen.
CMD Opens another Windows command interpreter window.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two or more files.
COMPACT Displays or changes the compression of files on NTFS partitions.
CONVERT Converts a FAT volume to NTFS. You cannot convert the current drive.
COPY Copies at least one file to another location.
DATE Displays or sets the date.
DEL Deletes at least one file.
DIR Displays files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, calls Windows commands, and creates macros.
ECHO Displays a message, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes at least one file.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two or more files and displays the differences.
FIND Searches for a text string in a file.
FINDSTR Searches for strings in a file.
FOR Runs a specified command for each file in a set.
FORMAT Formats a disk for use with Windows.
FTYPE Displays or modifies the file type used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a batch program.
GRAFTABL Enables Windows to display an extended character set in graphics mode.
HELP Provides help information for Windows commands.
IF Performs conditional processing in a batch program.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures system devices.
MORE Displays one screenful of results at a time.
MOVE Moves a file from one directory to another.
PATH Displays or sets the search path for executable files.
PAUSE Pauses processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Deletes a directory.
RECOVER Recovers readable information from a bad disk.
REM Records comments in a batch file or CONFIG.SYS.
REN Renames a file.
RENAME Renames a file.
REPLACE Replaces files.
RMDIR Deletes a directory.
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in a batch file.
SORT Sorts input.
START Starts another window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Displays the directory structure of a drive or path in graphic mode.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that files are written correctly to disk.
VOL Displays the disk volume label and serial number.
XCOPY Copies files and directory trees.
|
|
2003-11-29 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
ASSOC 显示或修改文件扩展名关联 详解ASSOC ]]
.ext 指定跟文件类型关联的文件扩展名
fileType 指定跟文件扩展名关联的文件类型
键入 ASSOC 而不带参数,显示当前文件关联。如果只用文件扩展
名调用 ASSOC,则显示那个文件扩展名的当前文件关联。如果不为
文件类型指定任何参数,命令会删除文件扩展名的关联。
ASSOC Displays or modifies file extension associations Detailed explanation of ASSOC ]]
.ext Specifies the file extension associated with the file type
fileType Specifies the file type associated with the file extension
Type ASSOC without parameters to display current file associations. If you call ASSOC with only a file extension, it displays the current file association for that file extension. If you do not specify any parameters for the file type, the command deletes the association for the file extension.
|
|
2003-11-29 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
AT 命令安排在特定日期和时间运行命令和程序。
要使用 AT 命令,计划服务必须已在运行中。
AT | /DELETE ]
AT time
| /NEXT:date] "command"
\\computername 指定远程计算机。 如果省略这个参数,
会计划在本地计算机上运行命令。
id 指定给已计划命令的识别号。
/delete 删除某个已计划的命令。如果省略 id,
计算机上所有已计划的命令都会被删除。
/yes 不需要进一步确认时,跟删除所有作业
的命令一起使用。
time 指定运行命令的时间。
/interactive 允许作业在运行时,与当时登录的用户
桌面进行交互。
/every:date 每个月或每个星期在指定的日期运行命
令。如果省略日期,则默认为在每月的
本日运行。
/next:date 指定在下一个指定日期(如,下周四)运
行命令。如果省略日期,则默认为在每
月的本日运行。
"command" 准备运行的 Windows NT 命令或批处理
程序。
The AT command is used to schedule commands and programs to run at specific dates and times.
To use the AT command, the Scheduling Service must be running.
AT | /DELETE ]
AT time
| /NEXT:date] "command"
\\computername Specifies a remote computer. If this parameter is omitted,
the command will be scheduled to run on the local computer.
id Specifies the identification number assigned to a scheduled command.
/delete Deletes a scheduled command. If id is omitted,
all scheduled commands on the computer will be deleted.
/yes Used with the command to delete all jobs when no further confirmation is needed.
time Specifies the time to run the command.
/interactive Allows the job to interact with the desktop of the user who is logged on at the time it runs.
/every:date Runs the command on the specified dates each month or week. If the date is omitted, it defaults to running on the same day of each month.
/next:date Specifies that the command will run on the next specified date (for example, next Thursday). If the date is omitted, it defaults to running on the same day of each month.
"command" The Windows NT command or batch program to be run.
|
|
2003-11-29 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
break
设置或清除 DOS 系统的扩展 CTRL+C 检测
这个命令是为了与 DOS 系统的兼容而保留的,在 Windows XP
里不起作用。
如果命令扩展名被启用,并且操作平台是 Windows XP,
BREAK 命令会在被调试程序调试时输入一个硬代码中断点。
break
Set or clear the extended CTRL+C detection for the DOS system
This command is retained for compatibility with the DOS system and does not work in Windows XP.
If command extensions are enabled and the operating platform is Windows XP, the BREAK command will enter a hard-coded breakpoint when being debugged by a debugging program.
|
|
2003-11-29 00:00 |
|
|
kkqq123
初级用户
 
积分 236
发帖 28
注册 2003-11-13
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
cacls
显示或者修改文件的访问控制表(ACL)
CACLS filename ]
] ]
filename 显示 ACL。
/T 更改当前目录及其所有子目录中
指定文件的 ACL。
/E 编辑 ACL 而不替换。
/C 在出现拒绝访问错误时继续。
/G user:perm 赋予指定用户访问权限。
Perm 可以是: R 读取
W 写入
C 更改(写入)
F 完全控制
/R user 撤销指定用户的访问权限(仅在与 /E 一起使用时合法)。
/P user:perm 替换指定用户的访问权限。
Perm 可以是: N 无
R 读取
W 写入
C 更改(写入)
F 完全控制
/D user 拒绝指定用户的访问。
在命令中可以使用通配符指定多个文件。
也可以在命令中指定多个用户。
缩写:
CI - 容器继承。
ACE 会由目录继承。
OI - 对象继承。
ACE 会由文件继承。
IO - 只继承。
ACE 不适用于当前文件/目录。
cacls
Displays or modifies the access control list (ACL) of a file
CACLS filename ]
] ]
filename Displays the ACL.
/T Changes the ACL of the specified file in the current directory and all its subdirectories.
/E Edits the ACL instead of replacing it.
/C Continues on access-denied errors.
/G user:perm Grants access rights to the specified user.
Perm can be: R Read
W Write
C Change (Write)
F Full control
/R user Revokes the access rights of the specified user (valid only when used with /E).
/P user:perm Replaces the access rights of the specified user.
Perm can be: N None
R Read
W Write
C Change (Write)
F Full control
/D user Denies access to the specified user.
Wildcards can be used in the command to specify multiple files.
Multiple users can also be specified in the command.
Abbreviations:
CI - Container inherit.
ACEs will be inherited by directories.
OI - Object inherit.
ACEs will be inherited by files.
IO - Inherit only.
ACEs do not apply to the current file/directory.
|
|
2003-11-29 00:00 |
|