像专业人士一样使用命令提示符——关于命令提示符的一切

已发表: 2019-05-21

随着 Windows 10 的推出,微软已经慢慢将命令行从 Windows 界面中推出。 这背后的原因是,在基于文本的输入时代,命令行是一种过时且最不必要的工具。 但是,许多命令仍然有用,Windows 10 甚至为命令行世界添加了新功能。 现在命令提示符被重新设计为 PowerShell,一个可以像命令提示符一样使用的应用程序。 这是一个色彩缤纷的应用程序,可以取代命令提示符,尽管您现在仍然可以使用命令提示符。 这些命令提示技巧对计算机管理员非常有用,并让他们可以专业地完成多项任务。

如何打开命令提示符

按 Win + R -> 输入 'cmd' -> 按 'Enter'

在搜索栏中,键入“cmd”,然后按“Enter”。

如果要以管理员身份打开命令提示符,请在搜索栏中输入“cmd”,一旦显示“命令应用程序”,右键单击它并单击“以管理员身份运行”。

另请阅读:关于 Windows 10 键盘快捷键的所有信息

如何在命令提示符下查找所有命令

要在命令提示符中查找相关命令及其语法,我们可以输入 'cmd /?' 或键入命令后跟“/?” 例如“ipconfig /?” 打开选项列表和语法及其操作。 这个命令解释器对于在命令提示符下学习新命令很有用。

所有关于命令提示符

使用语法

cmd [/c|/k] [/s] [/q] [/d] [/a|/u] [/t:{<B><F>|<F>}] [/e:{on|off}] [/f:{on|off}] [/v:{on|off}] [<String>]

参数

范围描述
/C 执行 String 指定的命令,然后停止。
/k 执行 String 指定的命令并继续。
/s 修改 /c 或 /k 之后对 String 的处理。
/q 关闭回声。
/d 禁用自动运行命令的执行。
/一个将内部命令输出格式化为美国国家标准协会 (ANSI) 的管道或文件。
/u 将内部命令输出格式化为 Unicode 管道或文件。
/t:{<B><F>|<F>} 设置背景 (B) 和前景 (F) 颜色。
/e:开启用命令扩展。
/e:关闭禁用命令扩展。
/f:开启用文件和目录名称完成。
/f:关闭禁用文件和目录名称完成。
/v:开启用延迟的环境变量扩展。
/v:关闭禁用延迟的环境变量扩展。
<字符串> 指定要执行的命令。
/? 在命令提示符处显示帮助。

下表列出了可用作 <B> 和 <F> 值的有效十六进制数字

价值颜色
0 黑色的
1 蓝色
2 绿
3 水族
4 红色的
5 紫色的
6 黄色的
7 白色的
8 灰色的
9 浅蓝
一个浅绿色
b 浅水色
C 红灯
d 浅紫色
e 淡黄色
F 明亮的白色

这是命令提示符命令的完整列表。 您还可以从本文底部的链接下载所有命令及其语法。

命令描述
附加程序可以使用 append 命令打开另一个目录中的文件,就好像它们位于当前目录中一样。 append 命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 append 命令在 64 位版本的 Windows 中不可用。
阿尔普arp 命令用于显示或更改 ARP 缓存中的条目。 arp 命令在所有版本的 Windows 中都可用。
协会assoc 命令用于显示或更改与特定文件扩展名关联的文件类型。 assoc 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
at 命令用于安排命令和其他程序在特定日期和时间运行。 at 命令在 Windows 7、Windows Vista 和 Windows XP 中可用。 从 Windows 8 开始,命令行任务调度应改为使用 schtasks 命令完成。
Atmadm atmadm 命令用于显示与系统上的异步传输模式 (ATM) 连接相关的信息。 atmadm 命令在 Windows XP 中可用。 从 Windows Vista 开始删除了对 ATM 的支持,因此不需要 atmadm 命令。
属性attrib 命令用于更改单个文件或目录的属性。 attrib 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
审计署auditpol 命令用于显示或更改审计策略。 auditpol 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
启动bcdboot 命令用于将引导文件复制到系统分区并创建新的系统 BCD 存储。 bcdboot 命令在 Windows 8 和 Windows 7 中可用。
编辑bcdedit 命令用于查看或更改引导配置数据。 bcdedit 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。 bcdedit 命令取代了从 Windows Vista 开始的 bootcfg 命令。
bdehdcfg bdehdcfg 命令用于为 BitLocker 驱动器加密准备硬盘驱动器。 bdehdcfg 命令在 Windows 8 和 Windows 7 中可用。
位管理员bitsadmin 命令用于创建、管理和监控下载和上传作业。 bitsadmin 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。 虽然在 Windows 8 和 Windows 7 中都可以使用 bitsadmin 命令,但它正在被逐步淘汰。 应该改用 BITS PowerShell cmdlet。
引导配置文件bootcfg 命令用于构建、修改或查看 boot.ini 文件的内容,该文件是一个隐藏文件,用于标识 Windows 位于哪个文件夹、哪个分区以及哪个硬盘驱动器上。 bootcfg 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。 从 Windows Vista 开始,bootcfg 命令被 bcdedit 命令取代。 Bootcfg 在 Windows 8、7 和 Vista 中仍然可用,但它没有真正的价值,因为这些操作系统中不使用 boot.ini。
引导类bootsect 命令用于将主引导代码配置为与 BOOTMGR(Vista 及更高版本)或 NTLDR(XP 及更早版本)兼容的引导代码。 bootsect 命令在 Windows 8 中可用。 bootsect 命令在 Windows 7 和 Windows Vista 中也可用,但只能来自系统恢复选项中可用的命令提示符。
休息break 命令设置或清除 DOS 系统上的扩展 CTRL + C 检查。 break 命令在所有版本的 Windows 以及 MS-DOS 中都可用。 break 命令在 Windows XP 和更高版本的 Windows 中可用,以提供与 MS-DOS 文件的兼容性,但它在 Windows 本身中无效。
计算机cacls 命令用于显示或更改文件的访问控制列表。 cacls 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。 cacls 命令正在逐步淘汰,取而代之的是 icacls 命令,该命令应在 Windows XP 之后的所有 Windows 版本中使用。
称呼call 命令用于从另一个脚本或批处理程序中运行脚本或批处理程序。 call 命令在所有版本的 Windows 以及 MS-DOS 中都可用。 call 命令在脚本或批处理文件之外没有任何作用。 换句话说,在命令提示符或 MS-DOS 提示符下运行 call 命令将不会执行任何操作。
光盘cd 命令是 chdir 命令的简写版本。 cd 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
证书certreq 命令用于执行各种证书颁发机构 (CA) 证书功能。 certreq 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
认证工具certutil 命令用于转储和显示证书颁发机构 (CA) 配置信息以及其他 CA 功能。 certutil 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
改变change 命令更改各种终端服务器设置,例如安装模式、COM 端口映射和登录。 更改命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
chcp chcp 命令显示或配置活动代码页号。 chcp 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
目录chdir 命令用于显示您当前所在的驱动器号和文件夹。chdir 还可用于更改您要工作的驱动器和/或目录。chdir 命令在所有版本的 Windows 中都可用,如以及在 MS-DOS 中。
检查网络隔离checknetisolation 命令用于测试需要网络功能的应用程序。 checknetisolation 命令在 Windows 8 中可用。
克格洛贡chggon 命令启用、禁用或清除终端服务器会话登录。 chggon 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。 执行 chggon 命令与执行更改登录相同。
端口chgport 命令可用于显示或更改 COM 端口映射以实现 DOS 兼容性。 chgport 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。 执行 chgport 命令与执行更改端口相同。
修改器chgusr 命令用于更改终端服务器的安装模式。 chgusr 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。 执行 chgusr 命令与执行更改用户相同。
查克兹克chkdsk 命令,通常称为检查磁盘,用于识别和纠正某些硬盘驱动器错误。 chkdsk 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
Chkntfs chkntfs 命令用于配置或显示在 Windows 启动过程中对磁盘驱动器的检查。 chkntfs 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
选择在脚本或批处理程序中使用选择命令来提供选择列表并将该选择的值返回给程序。 选择命令在 MS-DOS 和除 Windows XP 之外的所有 Windows 版本中都可用。 在您计划在 Windows XP 中使用的批处理文件和脚本中,使用带有 /p 开关的 set 命令代替选择命令。
密码cipher 命令显示或更改 NTFS 分区上文件和文件夹的加密状态。 cipher 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
夹子clip 命令用于将任何命令的输出重定向到 Windows 中的剪贴板。 剪辑命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
分类cls 命令清除所有先前输入的命令和其他文本的屏幕。 cls 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
命令cmd 命令启动 cmd.exe 命令解释器的新实例。 cmd 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
命令键cmdkey 命令用于显示、创建和删除存储的用户名和密码。 cmdkey 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
Cmstp cmstp 命令安装或卸载连接管理器服务配置文件。 cmstp 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
颜色color 命令用于更改命令提示符窗口中文本和背景的颜色。 颜色命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
命令'command' 命令启动 command.com 命令解释器的新实例。 'command' 命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 'command' 命令在 64 位版本的 Windows 中不可用。
比较comp 命令用于比较两个文件或文件集的内容。 comp 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
袖珍的compact 命令用于显示或更改 NTFS 分区上文件和目录的压缩状态。 compact 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
兑换convert 命令用于将 FAT 或 FAT32 格式的卷转换为 NTFS 格式。 convert 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
复制复制命令就是这样做的——它将一个或多个文件从一个位置复制到另一个位置。 复制命令在所有版本的 Windows 以及 MS-DOS 中都可用。 xcopy 命令被认为是复制命令的更“强大”版本。
脚本cscript 命令用于通过 Microsoft Script Host 执行脚本。 cscript 命令在所有版本的 Windows 中都可用。 cscript 命令最常用于使用 prncnfg.vbs、prndrvr.vbs、prmngr.vbs 等脚本从命令行管理打印机。
吨位ctty 命令用于更改系统的默认输入和输出设备。 ctty 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 从 Windows XP 开始不再需要 ctty 命令提供的功能,因为 command.com 解释器 (MS-DOS) 不再是默认的命令行解释器。
日期date 命令用于显示或更改当前日期。 date 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
数据库空间dblspace 命令用于创建或配置 DoubleSpace 压缩驱动器。 dblspace 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 使用 drvspace 命令执行的 DriveSpace 是 DoubleSpace 的更新版本。 从 Windows XP 开始,Windows 本机处理压缩。
调试debug 命令启动 Debug,这是一个用于测试和编辑程序的命令行应用程序。 debug 命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 debug 命令在 64 位版本的 Windows 中不可用。
碎片整理defrag 命令用于对您指定的驱动器进行碎片整理。 defrag 命令是 Microsoft 磁盘碎片整理程序的命令行版本。 defrag 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
德尔del 命令用于删除一个或多个文件。 del 命令在所有版本的 Windows 以及 MS-DOS 中都可用。 del 命令与擦除命令相同。
德尔特里deltree 命令用于删除一个目录以及其中的所有文件和子目录。 deltree 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 从 Windows XP 开始,可以使用 rmdir 命令的 /s 功能删除文件夹及其文件和子文件夹。 有了这个新的 rmdir 功能,不再需要 Deltree,因此删除了该命令。
戴安茨diantz 命令用于无损压缩一个或多个文件。 diantz 命令有时被称为 Cabinet Maker。 diantz 命令在 Windows 7、Windows Vista 和 Windows XP 中可用。 diantz 命令与 makecab 命令相同。
目录dir 命令用于显示您当前正在使用的文件夹中包含的文件和文件夹的列表。 dir 命令还显示其他重要信息,例如硬盘驱动器的序列号、列出的文件总数、它们的组合大小、驱动器上剩余的可用空间总量等。 dir 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
磁盘压缩diskcomp 命令用于比较两张软盘的内容。 diskcomp 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
磁盘拷贝diskcopy 命令用于将一张软盘的全部内容复制到另一张软盘上。 diskcopy 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
磁盘部分diskpart 命令用于创建、管理和删除硬盘分区。 diskpart 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。 diskpart 命令取代了从 Windows XP 开始的 fdisk 命令。
磁盘性能diskperf 命令用于远程管理磁盘性能计数器。 diskperf 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
磁盘袭击diskraid 命令启动用于管理和配置 RAID 阵列的 DiskRAID 工具。 diskraid 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
磁盘dism 命令启动部署映像服务和管理工具 (DISM)。 DISM 工具用于管理 Windows 映像中的功能。 dism 命令在 Windows 8 和 Windows 7 中可用。
显示诊断dispdiag 命令用于输出显示系统信息的日志。 dispdiag 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
加入djoin 命令用于在域中创建新的计算机帐户。 djoin 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
多斯基doskey 命令用于编辑命令行、创建宏和调用以前输入的命令。 doskey 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
多壳dosshell 命令启动 DOS Shell,这是一个用于 MS-DOS 的图形文件管理工具。 dosshell 命令在 Windows 95(在 MS-DOS 模式下)以及 MS-DOS 版本 6.0 和更高版本的 MS-DOS 版本中可用,这些版本是从包含 dosshell 命令的先前版本升级的。 从 Windows 95 开始,图形文件管理器 Windows 资源管理器成为操作系统的集成部分。
多斯dosx 命令用于启动 DOS 保护模式接口 (DPMI),这是一种特殊模式,旨在让 MS-DOS 应用程序访问超过通常允许的 640 KB。 dosx 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。 dosx 命令在 64 位版本的 Windows 中不可用。 dosx 命令和 DPMI 仅在 Windows 中可用以支持较旧的 MS-DOS 程序。
司机查询driverquery 命令用于显示所有已安装驱动程序的列表。 driverquery 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
驱动空间drvspace 命令用于创建或配置 DriveSpace 压缩驱动器。 drvspace 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 DriveSpace 是 DoubleSpace 的更新版本,使用 dblspace 命令执行。 从 Windows XP 开始,Windows 本机处理压缩。
回声echo 命令用于显示消息,通常来自脚本或批处理文件。 echo 命令还可用于打开或关闭回显功能。 echo 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
编辑编辑命令启动用于创建和修改文本文件的 MS-DOS 编辑器工具。 编辑命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 编辑命令在 64 位版本的 Windows 中不可用。
埃德林edlin 命令启动 Edlin 工具,该工具用于从命令行创建和修改文本文件。 edlin 命令在所有 32 位版本的 Windows 中都可用,但在 64 位版本的 Windows 中不可用。 在 MS-DOS 中,edlin 命令仅在 MS-DOS 5.0 之前可用,因此除非您的 MS-DOS 更高版本是从 5.0 或更早版本升级的,否则您将看不到 edlin 命令。
emmm386 emm386 命令用于让 MS-DOS 访问超过 640 KB 的内存。 emm386 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 从 Windows 95 开始,Windows 本身就可以访问扩展和扩展内存。
本地化endlocal 命令用于结束批处理或脚本文件中环境更改的本地化。 endlocal 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
擦除擦除命令用于删除一个或多个文件。 擦除命令在所有版本的 Windows 以及 MS-DOS 中都可用。 擦除命令与 del 命令相同。
埃森图尔esentutl 命令用于管理可扩展存储引擎数据库。 esentutl 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
事件创建eventcreate 命令用于在事件日志中创建自定义事件。 eventcreate 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
事件触发器eventtriggers 命令用于配置和显示事件触发器。 eventtriggers 命令在 Windows XP 中可用。 从 Windows Vista 开始,事件触发器是使用事件查看器中的将任务附加到此事件功能创建的,因此不需要 eventtriggers 命令。
exe2bin exe2bin命令用于将EXE文件类型的文件(可执行文件)转换为二进制文件。 exe2bin 命令在 32 位版本的 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。 exe2bin 命令在任何 64 位版本的 Windows 中都不可用。
出口exit 命令用于结束您当前正在使用的 cmd.exe (Windows) 或 command.com (MS-DOS) 会话。exit 命令在所有版本的 Windows 以及 MS-DOS 中都可用.
扩张expand 命令用于提取 Microsoft Cabinet (CAB) 文件中包含的文件和文件夹。 扩展命令在 MS-DOS 以及所有版本的 Windows 中都可用。 扩展命令在 64 位版本的 Windows XP 中不可用。
提取32 extrac32 命令用于提取 Microsoft Cabinet (CAB) 文件中包含的文件和文件夹。 extrac32 命令在所有版本的 Windows 中都可用。 extrac32 命令实际上是一个供 Internet Explorer 使用的 CAB 提取程序,但可用于提取任何 Microsoft Cabinet 文件。 如果可能,请使用 expand 命令而不是 extrac32 命令。
提炼extract 命令用于提取 Microsoft Cabinet (CAB) 文件中包含的文件和文件夹。 extract 命令在 Windows 98 和 95 中可用。extract 命令被替换为从 Windows XP 开始的 expand 命令。
快速帮助fasthelp 命令提供有关任何其他 MS-DOS 命令的更多详细信息。 fasthelp 命令仅在 MS-DOS 中可用。 从 Windows 95 开始,help 命令取代了 fasthelp 命令。
快开fastopen 命令用于将程序的硬盘位置添加到存储在内存中的特殊列表中,通过消除 MS-DOS 在驱动器上定位应用程序的需要,可能会缩短程序的启动时间。 fastopen 命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 fastopen 命令在 64 位版本的 Windows 中不可用。 Fastopen 仅在 Windows 8、7、Vista 和 XP 中可用,以支持较旧的 MS-DOS 文件。
Fc fc 命令用于比较两个单独或一组文件,然后显示它们之间的差异。 fc 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
磁盘fdisk 命令用于创建、管理和删除硬盘分区。 fdisk 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 从 Windows XP 开始,fdisk 命令被替换为 diskpart 命令。 Windows 8、7、Vista 和 XP 中的磁盘管理也提供分区管理。
寻找find 命令用于在一个或多个文件中搜索指定的文本字符串。 find 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
查找findstr 命令用于在一个或多个文件中查找文本字符串模式。 findstr 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
手指finger 命令用于返回有关运行 Finger 服务的远程计算机上的一个或多个用户的信息。 finger 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
飞利浦fltmc 命令用于加载、卸载、列出和以其他方式管理过滤器驱动程序。 fltmc 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
火锅火锅命令(Features on Demand User Experience Tool 的缩写)用于从命令行安装几个可选的 Windows 功能中的任何一个。 火锅命令在 Windows 8 中可用。可选的 Windows 功能也可以从控制面板中的程序和功能小程序安装。
为了for 命令用于为一组文件中的每个文件运行指定的命令。 for 命令最常用于批处理或脚本文件中。 for 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
强制执行forcedos 命令用于启动 MS-DOS 子系统中的指定程序。 forceos 命令仅在 32 位版本的 Windows XP 中可用。 forcedos 命令仅用于 Windows XP 无法识别的 MS-DOS 程序。
文件forfiles 命令选择一个或多个文件来执行指定的命令。 forfiles 命令最常在批处理或脚本文件中使用。 forfiles 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
格式format 命令用于格式化您指定的文件系统中的驱动器。 格式命令在所有版本的 Windows 以及 MS-DOS 中都可用。 Windows 8、7、Vista 和 XP 中的磁盘管理也提供驱动器格式化。
实用工具fsutil 命令用于执行各种 FAT 和 NTFS 文件系统任务,例如管理重解析点和稀疏文件、卸载卷和扩展卷。 fsutil 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
FTP ftp 命令可用于在另一台计算机之间传输文件。 远程计算机必须作为 FTP 服务器运行。 ftp 命令在所有版本的 Windows 中都可用。
F型ftype 命令用于定义打开指定文件类型的默认程序。 ftype 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
Getmac getmac 命令用于显示系统上所有网络控制器的媒体访问控制 (MAC) 地址。 getmac 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
goto 命令用于批处理或脚本文件中,以将命令进程定向到脚本中的标记行。 goto 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
预测结果gpresult 命令用于显示组策略设置。 gpresult 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
更新gpupdate 命令用于更新组策略设置。 gpupdate 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
可移植的graftabl 命令用于启用 Windows 以图形模式显示扩展字符集的能力。 graftabl 命令可用于所有版本的 Windows 和 MS-DOS 至 5.0 版。 graftabl 命令在 64 位版本的 Windows 中不可用。
图形graphics 命令用于加载可以打印图形的程序。 图形命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 图形命令在 64 位版本的 Windows 中不可用。
帮助help 命令提供有关任何其他命令提示符或 MS-DOS 命令的更多详细信息。 帮助命令在所有版本的 Windows 以及 MS-DOS 中都可用。
主机名hostname 命令显示当前主机的名称。 hostname 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
Hwrcomp hwrcomp 命令用于编译用于手写识别的自定义字典。 hwrcomp 命令在 Windows 8 和 Windows 7 中可用。
赫雷格hwrreg 命令用于安装以前编译的自定义字典以进行手写识别。 hwrreg 命令在 Windows 8 和 Windows 7 中可用。
集成电路icacls 命令用于显示或更改文件的访问控制列表。 icacls 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。 icacls 命令是 cacls 命令的更新版本。
如果if 命令用于在批处理文件中执行条件函数。 if 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
互连interlnk 命令用于通过串行或并行连接连接两台计算机以共享文件和打印机。 interlnk 命令仅在 MS-DOS 中可用。 直接连接两台计算机的能力由所有版本的 Windows 中的网络功能处理。
intersvr 命令用于启动 Interlnk 服务器并将 Interlnk 文件从一台计算机复制到另一台计算机。 intersvr 命令仅在 MS-DOS 中可用。 直接连接两台计算机的能力由所有版本的 Windows 中的网络功能处理。
ipconfig ipconfig 命令用于显示每个使用 TCP/IP 的网络适配器的详细 IP 信息。 ipconfig 命令还可用于在配置为通过 DHCP 服务器接收 IP 地址的系统上释放和更新 IP 地址。 ipconfig 命令在所有版本的 Windows 中都可用。
ipx路由ipxroute 命令用于显示和更改有关 IPX 路由表的信息。 ipxroute 命令在 Windows XP 中可用。 微软从 Windows Vista 开始删除了他们的本地 NetWare 客户端,同时也删除了相关的 ipxroute 命令。
Irftp irftp 命令用于通过红外链路传输文件。 irftp 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
伊西克利iscsicli 命令启动 Microsoft iSCSI Initiator,用于管理 iSCSI。 iscsicli 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
KB16 kb16 命令用于支持需要为特定语言配置键盘的 MS-DOS 文件。 kb16 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。 kb16 命令在 64 位版本的 Windows 中不可用。 kb16 命令取代了从 Windows XP 开始的 keyb 命令,但仅用于支持较旧的 MS-DOS 文件。
键b keyb 命令用于为特定语言配置键盘。 keyb 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 有关更高版本 Windows 中的等效命令,请参见 kb16 命令。 从 Windows XP 开始,键盘语言设置由 Windows 中的区域和语言或区域和语言选项(取决于 Windows 版本)控制面板小程序处理。
列表klist 命令用于列出 Kerberos 服务票证。 klist 命令还可用于清除 Kerberos 票证。 klist 命令在 Windows 8 和 Windows 7 中可用。
设置ksetup 命令用于配置与 Kerberos 服务器的连接。 ksetup 命令在 Windows 8 和 Windows 7 中可用。
Ktmutil ktmutil 命令启动内核事务管理器实用程序。 ktmutil 命令在 Windows 8、Windows 7 和 Windows Vista 中可用。
标签label 命令用于管理磁盘的卷标。 label 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
Lh lh 命令是 loadhigh 命令的简写版本。 lh 命令在 Windows 98 和 95 以及 MS-DOS 中可用。
许可诊断licensediag 命令是一种工具,用于生成基于文本的日志和其他包含产品激活和其他 Windows 许可信息的数据文件。 licensediag 命令在 Windows 8 中可用。
加载修复loadfix命令用于在内存的前64K加载指定程序,然后运行该程序。 loadfix 命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 loadfix 命令在 64 位版本的 Windows 中不可用。
负载高loadhigh 命令用于将程序加载到高内存中,通常在 autoexec.bat 文件中使用。 loadhigh 命令在 Windows 98 和 95 以及 MS-DOS 中可用。 从 Windows XP 开始自动处理内存使用情况。
lock 命令用于锁定驱动器,使程序能够直接访问磁盘。 lock 命令仅在 Windows 98 和 95 中可用。从 Windows XP 开始,驱动器锁定不再可用。
定位器lodctr 命令用于更新与性能计数器相关的注册表值。 lodctr 命令在所有版本的 Windows 中都可用。
洛格曼logman 命令用于创建和管理事件跟踪会话和性能日志。 logman 命令还支持性能监视器的许多功能。 logman 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
注销logoff 命令用于终止会话。 注销命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。
Lpq lpq 命令显示运行行式打印机守护程序 (LPD) 的计算机上打印队列的状态。 lpq 命令在所有版本的 Windows 中都可用。 默认情况下,lpq 命令在 Windows 8、7 或 Vista 中不可用,但可以通过在控制面板中的程序和功能中打开 LPD 打印服务和 LPR 端口监视器功能来启用。
脂蛋白lpr 命令用于将文件发送到运行行式打印机守护程序 (LPD) 的计算机。 lpr 命令在所有版本的 Windows 中都可用。 lpr 命令在 Windows 8、7 或 Vista 中默认不可用,但可以通过在控制面板的程序和功能中打开 LPD 打印服务和 LPR 端口监视器功能来启用。
客舱makecab 命令用于无损压缩一个或多个文件。 makecab 命令有时被称为 Cabinet Maker。 makecab 命令在 Windows 8、Windows 7、Windows Vista 和 Windows XP 中可用。 makecab 命令与 diantz 命令相同,该命令在 Windows 7 之后被删除。
管理-bde manage-bde 命令用于从命令行配置 BitLocker 驱动器加密。 manage-bde 命令在 Windows 8 和 Windows 7 中可用。名为 manage-bde.wsf 的脚本存在于 Windows Vista 中,可与 cscript 命令一起使用,以从该操作系统的命令行执行 BitLocker 任务。
医学博士md 命令是 mkdir 命令的简写版本。 md 命令在所有版本的 Windows 以及 MS-DOS 中都可用。
内存mem 命令显示有关已使用和空闲内存区域以及当前加载到 MS-DOS 子系统内存中的程序的信息。 mem 命令在 MS-DOS 以及所有 32 位版本的 Windows 中都可用。 The mem command is not available in 64-bit versions of Windows.
Memmaker The memmaker command is used to start MemMaker, a memory optimization tool. The memaker command is available in Windows 98 and 95, as well as in MS-DOS. Memory usage is automatically optimized beginning in Windows XP.
目录The mkdir command is used to create a new folder. The mkdir command is available in all versions of Windows, as well as in MS-DOS.
Mklink The mklink command is used to create a symbolic link. The mklink command is available in Windows 8, Windows 7, and Windows Vista.
模式The mode command is used to configure system devices, most often COM and LPT ports. The mode command is available in all versions of Windows, as well as in MS-DOS.
Mofcomp The mofcomp command properly displays the data within a Managed Object Format (MOF) file. The mofcomp command is available in all versions of Windows.
更多的The more command is used to display the information contained in a text file. The more command can also be used to paginate the results of any other Command Prompt or MS-DOS command. The more command is available in all versions of Windows, as well as in MS-DOS.
The mount command is used to mount Network File System (NFS) network shares. The mount command is available in Windows 7 and Windows Vista. The mount command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The mount command is not available in Windows 8 because Service for UNIX (SFU) was discontinued.
Mountvol The mountvol command is used to display, create, or remove volume mount points. The mountvol command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
移动The move command is used to move one or files from one folder to another. The move command is also used to rename directories. The move command is available in all versions of Windows, as well as in MS-DOS.
信息The mrinfo command is used to provide information about a router's interfaces and neighbors. The mrinfo command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Msav The msav command starts Microsoft Antivirus. The msav command is only available in MS-DOS. Microsoft Antivirus was designed for MS-DOS and Windows 3.x only. Microsoft provides an optional virus protection suite called Microsoft Security Essentials for Windows XP and later operating systems, and third party antivirus tools are available for all versions of Windows.
Msbackup The msbackup command starts Microsoft Backup, a tool used to back up and restore one or more files. The msbackup command is only available in MS-DOS. The msbackup command was replaced with Microsoft Backup beginning in Windows 95 and then Backup and Restore in later versions of Windows.
Mscdex The mscdex command is used to provide CD-ROM access to MS-DOS. The mscdex command is available in Windows 98 and 95, as well as in MS-DOS. Windows provides access to CD-ROM drives for the MS-DOS subsystem beginning in Windows XP, so the mscdex command is unnecessary in this and later operating systems.
Msd The msd command starts Microsoft Diagnostics, a tool used to display information about your computer. The msd command is only available in MS-DOS. The msd command was replaced with System Information beginning in Windows 95.
消息The msg command is used to send a message to a user. The msg command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Msiexec The msiexec command is used to start Windows Installer, a tool used to install and configure software. The msiexec command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Muiunattend The muiunattend command starts the Multilanguage User Interface unattended setup process. The muiunattend command is available in Windows 8, Windows 7, and Windows Vista.
Nbtstat The nbtstat command is used to show TCP/IP information and other statistical information about a remote computer. The nbtstat command is available in all versions of Windows.
The net command is used to display, configure, and correct a wide variety of network settings. The net command is available in all versions of Windows.
网1 The net1 command is used to display, configure, and correct a wide variety of network settings. The net1 command is available in Windows 8, Windows 7, Windows Vista, and Windows XP. The net command should be used instead of the net1 command. The net1 command was made available in Windows NT and Windows 2000 as a temporary fix for a Y2K issue that the net command had, which was corrected before the release of Windows XP. The net1 command remains in later versions of Windows only for compatibility with older programs and scripts that utilized the command.
Netcfg The netcfg command is used to install the Windows Preinstallation Environment (WinPE), a lightweight version of Windows used to deploy workstations. The netcfg command is available in Windows 8, Windows 7, and Windows Vista.
网盘The netsh command is used to start Network Shell, a command-line utility used to manage the network configuration of the local, or a remote, computer. The netsh command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
网络统计The netstat command is most commonly used to display all open network connections and listening ports. The netstat command is available in all versions of Windows.
Nfsadmin The nfsadmin command is used to manage Server for NFS or Client for NFS from the command line. The nfsadmin command is available in Windows 7 and Windows Vista. The nfsadmin command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The nfsadmin command is not available in Windows 8 because Service for UNIX (SFU) was discontinued.
Nlsfunc The nlsfunc command is used to load information specific to a particular country or region. The nlsfunc command is available in MS-DOS as well as in all 32-bit versions of Windows. The nlsfunc command is not available in 64-bit versions of Windows. Nlsfunc is only available in Windows 8, 7, Vista, and XP to support older MS-DOS files.
Nltest The nltest command is used to test secure channels between Windows computers in a domain and between domain controllers that are trusting other domains. The nltest command is available in Windows 8 and Windows 7.
查找The nslookup is most commonly used to display the hostname of an entered IP address. The nslookup command queries your configured DNS server to discover the IP address. The nslookup command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Ntbackup The ntbackup command is used to perform various backup functions from the Command Prompt or from within a batch or script file. The ntbackup command is available in Windows XP. The ntbackup command was replaced with the wbadmin beginning in Windows Vista.
Ntsd The ntsd command is used to perform certain command line debugging tasks. The ntsd command is available in Windows XP. The ntsd command was removed beginning in Windows Vista due to the addition of dump file support in Task Manager.
Ocsetup The ocsetup command starts the Windows Optional Component Setup tool, used to install additional Windows features. The ocsetup command is available in Windows 8, Windows 7, and Windows Vista. Beginning in Windows 8, Microsoft is depreciating the ocsetup command in favor of the dism command.
Openfiles The openfiles command is used to display and disconnect open files and folders on a system. The openfiles command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
小路The path command is used to display or set a specific path available to executable files. The path command is available in all versions of Windows, as well as in MS-DOS.
Pathping The pathping command functions much like the tracert command but will also report information about network latency and loss at each hop. The pathping command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
暂停The pause command is used within a batch or script file to pause the processing of the file. When the pause command is used, a “Press any key to continue…” message displays in the command window. The pause command is available in all versions of Windows, as well as in MS-DOS.
Pentnt The pentnt command is used to detect floating point division errors in the Intel Pentium chip. The pentnt command is also used to enable floating point emulation and disable floating point hardware. The pentnt command is available in Windows XP. The pentnt command was removed beginning in Windows Vista due to the lack of Intel Pentium CPU use at the time of this operating system release.
The ping command sends an Internet Control Message Protocol (ICMP) Echo Request message to a specified remote computer to verify IP-level connectivity. The ping command is available in all versions of Windows.
Pkgmgr The pkgmgr command is used to start the Windows Package Manager from the Command Prompt. Package Manager installs, uninstalls, configures, and updates features and packages for Windows. The pkgmgr command is available in Windows 8, Windows 7, and Windows Vista.
Pnpunattend The pnpunattend command is used to automate the installation of hardware device drivers. The pnpunattend command is available in Windows 8, Windows 7, and Windows Vista.
Pnputil The pnputil command is used to start the Microsoft PnP Utility, a tool used to install a Plug and Play device from the command line. The pnputil command is available in Windows 8, Windows 7, and Windows Vista.
Popd The popd command is used to change the current directory to the one most recently stored by the pushd command. The popd command is most often utilized from within a batch or script file. The popd command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
力量The power command is used to reduce the power consumed by a computer by monitoring software and hardware devices. The power command is available in Windows 98 and 95, as well as in MS-DOS. The power command was replaced by operating system integrated power management functions beginning in Windows XP.
Powercfg The powercfg command is used to manage the Windows power management settings from the command line. The powercfg command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
打印The print command is used to print a specified text file to a specified printing device. The print command is available in all versions of Windows, as well as in MS-DOS.
迅速的The prompt command is used to customize the appearance of the prompt text in Command Prompt or MS-DOS. The prompt command is available in all versions of Windows, as well as in MS-DOS.
Pushd The pushd command is used to store a directory for use, most commonly from within a batch or script program. The pushd command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Pwlauncher The pwlauncher command is used to enable, disable, or show the status of your Windows To Go startup options. The pwlauncher command is available in Windows 8.
Qappsrv The qappsrv command is used to display all Remote Desktop Session Host servers available on the network. The qappsrv command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Qbasic The qbasic command starts QBasic, the MS-DOS based programming environment for the BASIC programming language. The qbasic command is available in Windows 98 and 95, as well as in MS-DOS. The qbasic command is not installed by default with Windows 98 or 95 but is available from the installation disc or disks.
Qprocess The qprocess command is used to display information about running processes. The qprocess command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
询问The query command is used to display the status of a specified service. The query command is available in Windows 8, Windows 7, and Windows Vista.
Quser The quser command is used to display information about users currently logged on to the system. The quser command is available in Windows 8, Windows 7, and Windows Vista.
Qwinsta The qwinsta command is used to display information about open Remote Desktop Sessions. The qwinsta command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Rasautou The rasautou command is used to manage Remote Access Dialer AutoDial addresses. The rasautou command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Rasdial The rasdial command is used to start or end a network connection for a Microsoft client. The rasdial command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Rcp The rcp command is used to copy files between a Windows computer and a system running the rshd daemon. The rcp command is available in Windows 7, Windows Vista, and Windows XP. The rcp command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Subsystem for UNIX-based Applications Windows feature from Programs and Features in Control Panel and then installing the Utilities and SDK for UNIX-based Applications available here for Windows Vista and here for Windows 7. The rcp command is not available in Windows 8 because Service for UNIX (SFU) was discontinued.
The rd command is the shorthand version of the rmdir command. The rd command is available in all versions of Windows, as well as in MS-DOS.
Rdpsign The rdpsign command is used to sign a Remote Desktop Protocol (RDP) file. The rdpsign command is available in Windows 7.
Reagentc The reagentc command is used to configure the Windows Recovery Environment (RE). The reagentc command is available in Windows 8 and Windows 7.
Recimg The recimg command is used to create a custom refresh image. The recimg command is available in Windows 8.
恢复The recover command is used to recover readable data from a bad or defective disk. The recover command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
注册The reg command is used to manage the Windows Registry from the command line. The reg command can perform common registry functions like adding registry keys, exporting the registry, etc. The reg command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Regini The regini command is used to set or change registry permissions and registry values from the command line. The regini command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Register-cimprovider The register-cimprovider command is used to register a Common Information Model (CIM) Provider in Windows. The register-cimprovider command is available in Windows 8.
Regsvr32 The regsvr32 command is used to register a DLL file as a command component in the Windows Registry. The regsvr32 command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Relog The relog command is used to create new performance logs from data in existing performance logs. The relog command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
雷姆The rem command is used to record comments or remarks in a batch or script file. The rem command is available in all versions of Windows, as well as in MS-DOS.
The ren command is the shorthand version of the rename command. The ren command is available in all versions of Windows, as well as in MS-DOS.
改名The rename command is used to change the name of the individual file that you specify. The rename command is available in all versions of Windows, as well as in MS-DOS.
Repair-bde The repair-bde command is used to repair or decrypt a damaged drive that's been encrypted using BitLocker. The repair-bde command is available in Windows 8 and Windows 7.
代替The replace command is used to replace one or more files with one or more other files. The replace command is available in all versions of Windows, as well as in MS-DOS.
重启The reset command, executed as reset session, is used to reset the session subsystem software and hardware to known initial values. The reset command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
恢复The restore command is used to restore files that were backed up using the backup command. The restore command is only available in MS-DOS. The backup command was only available up to MS-DOS 5.00 but the restore command was included by default with later versions of MS-DOS to provide a way to restore files that were backed up in previous versions of MS-DOS.
Rexec The rexec command is used to run commands on remote computers running the rexec daemon. The rexec command is available in Windows Vista and Windows XP. The rsh command is not available by default in Windows Vista but can be enabled by turning on the Subsystem for UNIX-based Applications Windows feature from Programs and Features in Control Panel and then installing the Utilities and SDK for UNIX-based Applications available here. The rexec command is not available in Windows 7 but can be executed in Windows XP via Windows XP Mode if need be.
Rmdir The rmdir command is used to delete an existing or completely empty folder. The rmdir command is available in all versions of Windows, as well as in MS-DOS.
Robocopy The robocopy command is used to copy files and directories from one location to another. This command is also called Robust File Copy. The robocopy command is available in Windows 8, Windows 7, and Windows Vista. The robocopy command is superior to both the copy command and the xcopy command because robocopy supports many more options.
路线The route command is used to manipulate network routing tables. The route command is available in all versions of Windows.
Rpcinfo The rpcinfo command makes a remote procedure call (RPC) to an RPC server and reports what it finds. The rpcinfo command is available in Windows 7 and Windows Vista. The rpcinfo command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The rpcinfo command is not available in Windows 8 because Service for UNIX (SFU) was discontinued.
Rpcping The rpcping command is used to ping a server using RPC. The rpcping command is available in Windows 8, Windows 7, and Windows Vista.
Rsh The rsh command is used to run commands on remote computers running the rsh daemon. The rsh command is available in Windows 7, Windows Vista, and Windows XP. The rsh command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Subsystem for UNIX-based Applications Windows feature from Programs and Features in Control Panel and then installing the Utilities and SDK for UNIX-based Applications available here for Windows Vista and here for Windows 7. The rsh command is not available in Windows 8 because Service for UNIX (SFU) was discontinued.
rsm The rsm command is used to manage media resources using Removable Storage. The rsm command is available in Windows Vista and Windows XP. The rsm command was optional in Windows Vista and then removed in Windows 7 due to Removable Storage Manager being removed from the operating system. Search for the rsm command in the C:\Windows\winsxs folder in Windows Vista if you're having trouble executing the command.
Runas The runas command is used to execute a program using another user's credentials. The runas command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Rwinsta The rwinsta command is the shorthand version of the reset session command. The rwinsta command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Sc The sc command is used to configure information about services. The sc command communicates with the Service Control Manager. The sc command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Scandisk The scandisk command is used to start Microsoft ScanDisk, a disk repair program. The scandisk command is available in Windows 98 and 95, as well as in MS-DOS. The scandisk command was replaced by the chkdsk command beginning in Windows XP.
Scanreg The scanreg command starts Windows Registry Checker, a basic registry repair program and backup utility. The scanreg command is available in Windows 98 and Windows 95. The functions provided by the scanreg command were no longer necessary beginning in Windows XP due to changes in how the Windows Registry functions.
Schtasks The schtasks command is used to schedule specified programs or commands to run at certain times. The schtasks command can be used to create, delete, query, change, run, and end scheduled tasks. The schtasks command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.?
Sdbinst The sdbinst command is used to deploy customized SDB database files. The sdbinst command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Secedit The secedit command is used to configure and analyze system security by comparing the current security configuration to a template. The secedit command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
The set command is used to display, enable, or disable environment variables in MS-DOS or from the Command Prompt. The set command is available in all versions of Windows, as well as in MS-DOS.
Setlocal The setlocal command is used to start the localization of environment changes inside a batch or script file. The setlocal command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Setspn The setspn command is used to manage the Service Principal Names (SPN) for an Active Directory (AD) service account. The setspn command is available in Windows 8 and Windows 7.
Setver The setver command is used to set the MS-DOS version number that MS-DOS reports to a program. The setver command is available in MS-DOS as well as in all 32-bit versions of Windows. The setver command is not available in 64-bit versions of Windows.
Setx The setx command is used to create or change environment variables in the user environment or the system environment. The setx command is available in Windows 8, Windows 7, and Windows Vista.
证监会The sfc command is used to verify and replace important Windows system files. The sfc command is also referred to as System File Checker or Windows Resource Checker, depending on the operating system. The sfc command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
阴影The shadow command is used to monitor another Remote Desktop Services session. The shadow command is available in Windows 7, Windows Vista, and Windows XP.
分享The share command is used to install file locking and file sharing functions in MS-DOS. The share command is available in MS-DOS as well as in all 32-bit versions of Windows. The share command is not available in 64-bit versions of Windows. Share is only available in Windows 8, 7, Vista, and XP to support older MS-DOS files.
转移The shift command is used to change the position of replaceable parameters in a batch or script file. The shift command is available in all versions of Windows, as well as in MS-DOS.
Showmount The showmount command is used to display information about NFS mounted file systems. The showmount command is available in Windows 7 and Windows Vista. The showmount command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The showmount command is not available in Windows 8 because Service for UNIX (SFU) was discontinued.
关掉The shutdown command can be used to shut down, restart, or log off the current system or a remote computer. The shutdown command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Smartdrv The smartdrv command installs and configures SMARTDrive, a disk caching utility for MS-DOS. The smartdrv command is available in Windows 98 and 95, as well as in MS-DOS. Caching is automatic beginning in Windows XP, making the smartdrv command unnecessary.
种类The sort command is used to read data from a specified input, sort that data, and return the results of that sort to the Command Prompt screen, a file, or another output device. The sort command is available in all versions of Windows, as well as in MS-DOS.
开始The start command is used to open a new command line window to run a specified program or command. The start command can also be used to start an application without creating a new window. The start command is available in all versions of Windows.
Subst The subst command is used to associate a local path with a drive letter. The subst command is a lot like the net use command except a local path is used instead of a shared network path. The subst command is available in all versions of Windows, as well as in MS-DOS. The subst command replaced the assign command beginning with MS-DOS 6.0.
Sxstrace The sxstrace command is used to start the WinSxs Tracing Utility, a programming diagnostic tool. The sxstrace command is available in Windows 8, Windows 7, and Windows Vista.
系统The sys command is used to copy the MS-DOS system files and command interpreter to a disk. The sys command is available in Windows 98 and 95, as well as in MS-DOS. The sys command is used most often to create a simple bootable disk or hard drive. The necessary system files for Windows are too large to fit on a disk, so the sys command was removed beginning in Windows XP.
Systeminfo The systeminfo command is used to display basic Windows configuration information for the local or a remote computer. The systeminfo command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Takeown The takedown command is used to regain access to a file that that an administrator was denied access to when reassigning ownership of the file. The takeown command is available in Windows 8, Windows 7, and Windows Vista.
Taskkill The taskkill command is used to terminate a running task. The taskkill command is the command line equivalent of ending a process in Task Manager in Windows. The taskkill command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
任务列表Displays a list of applications, services, and the Process ID (PID) currently running on either a local or a remote computer. The tasklist command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Tcmsetup The tcmsetup command is used to set up or disable the Telephony Application Programming Interface (TAPI) client. The tcmsetup command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
远程登录The telnet command is used to communicate with remote computers that use the Telnet protocol. The telnet command is available in all versions of Windows. The telnet command is not available by default in Windows 8, 7, or Vista, but can be enabled by turning on the Telnet Client Windows feature from Programs and Features in Control Panel.
Tftp The tftp command is used to transfer files to and from a remote computer that's running the Trivial File Transfer Protocol (TFTP) service or daemon. The tftp command is available in Windows 8, Windows 7, Windows Vista, and Windows XP. The tftp command is not available by default in Windows 8, 7, or Vista, but can be enabled by turning on the TFTP Client Windows feature from Programs and Features in Control Panel.
时间The time command is used to show or change the current time. The time command is available in all versions of Windows, as well as in MS-DOS.
暂停The timeout command is typically used in a batch or script file to provide a specified timeout value during a procedure. The timeout command can also be used to ignore keypresses. The timeout command is available in Windows 8, Windows 7, and Windows Vista.
标题The title command is used to set the Command Prompt window title. The title command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Tlntadmn The tlntadmn command is used to administer a local or remote computer running Telnet Server. The tlntadmn command is available in Windows 8, Windows 7, Windows Vista, and Windows XP. The tlntadmn command is not available by default in Windows 8, 7, or Vista, but can be enabled by turning on the Telnet Server Windows feature from Programs and Features in Control Panel.
Tpmvscmgr The tpmvscmgr command is used to create and destroy TPM virtual smart cards. The tpmvscmgr command is available in Windows 8.
Tracerpt The tracerpt command is used to process event trace logs or real-time data from instrumented event trace providers. The tracerpt command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
示踪剂The tracert command sends Internet Control Message Protocol (ICMP) Echo Request messages to a specified remote computer with increasing Time to Live (TTL) field values and displays the IP address and hostname, if available, of the router interfaces between the source and destination. The tracert command is available in all versions of Windows.
The tree command is used to graphically display the folder structure of a specified drive or path. The tree command is available in all versions of Windows, as well as in MS-DOS.
Tscon The tscon command is used to attach a user session to a Remote Desktop session. The tscon command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Tsdiscon The tsdiscon command is used to disconnect a Remote Desktop session. The tsdiscon command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Tskill The tskill command is used to end the specified process. The tskill command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Tsshutdn The tsshutdn command is used to remotely shut down or restart a terminal server. The tsshutdn command is available in Windows XP. The ability to shut down a computer remotely is also available in the more powerful shutdown command, so tsshutdn was removed beginning in Windows Vista.
类型The type command is used to display the information contained in a text file. The type command is available in all versions of Windows, as well as in MS-DOS.
Typeperf The typerperf command displays performance data in the Command Prompt window or writes the data to specified log file. The typeperf command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Tzutil The tzutil command is used to display or configure the current system's time zone. The tzutil command can also be used to enable or disable Daylight Saving Time adjustments. The tzutil command is available in Windows 8 and Windows 7.
Umount The umount command is used to remove Network File System (NFS) mounted network shares. The umount command is available in Windows 7 and Windows Vista. The umount command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The umount command is not available in Windows 8 because Service for UNIX (SFU) was discontinued.
取消删除The undelete command is used to undo a deletion performed with the MS-DOS delete command. The undelete command is only available in MS-DOS. The undelete command was removed beginning in Windows 95 due to the availability of the Recycle Bin in Windows. Additionally, free file recovery programs are available from third-party software makers.
取消格式化The unformat command is used to undo the formatting on a drive performed by the MS-DOS format command. The unformat command is only available in MS-DOS. The unformat command was removed beginning in Windows 95 due to file system changes.
开锁The unlock command is used to unlock a drive, disabling direct disk access for a program. The unlock command is only available in Windows 98 and 95. Drive locking is no longer available as of Windows XP.
Unlodctr The unlodctr command removes Explain text and Performance counter names for a service or device driver from the Windows Registry. The unlodctr command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Vaultcmd The vaultcmd command is used to create, remove, and show stored credentials. The vaultcmd command is available in Windows 8 and Windows 7.
版本The ver command is used to display the current Windows or MS-DOS version number. The ver command is available in all versions of Windows, as well as in MS-DOS.
核实The verify command is used to enable or disable the ability of Command Prompt, or MS-DOS, to verify that files are written correctly to a disk. The verify command is available in all versions of Windows, as well as in MS-DOS.
The vol command shows the volume label and serial number of a specified disk, assuming this information exists. The vol command is available in all versions of Windows, as well as in MS-DOS.
Vsafe The vsafe command is used to start VSafe, a basic virus protection system for MS-DOS. The vsafe command is only available in MS-DOS. VSafe was designed for MS-DOS and Windows 3.x only. Microsoft provides an optional virus protection suite called Microsoft Security Essentials for Windows XP and later operating systems, and third-party antivirus tools are available for all versions of Windows.
Vssadmin The vssadmin command starts the Volume Shadow Copy Service administrative command line tool which displays current volume shadow copy backups and all installed shadow copy writers and providers. The vssadmin command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
W32tm The w32tm command is used to diagnose issues with Windows Time. The w32tm command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Waitfor The waitfor command is used to send or wait for a signal on a system. The waitfor command is available in Windows 8, Windows 7, and Windows Vista.
Wbadmin The wbadmin command is used to start and stop backup jobs, display details about a previous backup, list the items within a backup, and report on the status of a currently running backup. The wbadmin command is available in Windows 8, Windows 7, and Windows Vista. The wbadmin command replaced the ntbackup command beginning in Windows Vista.
Wecutil The wecutil command is used to manage subscriptions to events that are forwarded from WS-Management supported computers. The wecutil command is available in Windows 8, Windows 7, and Windows Vista.
Wevtutil The wevtutil command starts the Windows Events Command Line Utility which is used to manage event logs and publishers. The wevtutil command is available in Windows 8, Windows 7, and Windows Vista.
在哪里The where command is used to search for files that match a specified pattern. The where command is available in Windows 8, Windows 7, and Windows Vista.
我是谁The whoami command is used to retrieve user name and group information on a network. The whoami command is available in Windows 8, Windows 7, and Windows Vista.
Winmgmt The winmgmt command starts the command line version of WMI, a scripting tool in Windows. The winmgmt command is available in all versions of Windows.
温姆The winrm command is used to start the command line version of Windows Remote Management, used to manage secure communications with local and remote computers using web services. The winrm command is available in Windows 8, Windows 7, and Windows Vista.
Winrs The winrs command is used to open a secure command window with a remote host. The winrs command is available in Windows 8, Windows 7, and Windows Vista.
Winsat The winsat command starts the Windows System Assessment Tool, a program that assesses various features, attributes, and capabilities of a computer running Windows. The winsat command is available in Windows 8, Windows 7, and Windows Vista.
Wmic The wmic command starts the Windows Management Instrumentation Command line (WMIC), a scripting interface that simplifies the use of Windows Management Instrumentation (WMI) and systems managed via WMI. The wmic command is available in Windows 8, Windows 7, Windows Vista, and Windows XP.
Wsmanhttpconfig The wsmanhttpconfig command is used to manage aspects of the Windows Remote Management (WinRM) service. The wsmanhttpconfig command is available in Windows 8, Windows 7, and Windows Vista.
Xcopy The xcopy command can copy one or more files or directory trees from one location to another. The xcopy command is generally considered a more “powerful” version of the copy command through the robocopy command trumps even xcopy. The xcopy command is available in all versions of Windows, as well as in MS-DOS. A command by the name of xcopy32 existed in Windows 95 and Windows 98. To avoid a long and confusing explanation here, just know that no matter if you executed the xcopy command or the xcopy32 command, you were always executing the most updated version of the command.
Xwizard The xwizard command, short for Extensible Wizard, is used to register data in Windows, often from a preconfigured XML file. The xwizard command is available in Windows 8 and Windows 7.

The above list is a set of most essential commands of command prompt. To view or download a PDF version of complete set of windows commands, please click on the below button.

下载为 PDF

如果这篇文章对您有所帮助,请点赞并与您的同事分享。

如需更多此类提示、技巧和与技术相关的更新,请订阅Tweak Library ,如果您更喜欢与技术相关的视频,请观看并订阅我们的YouTube 频道。 您也可以通过FacebookPinterest 联系我们。