像專業人士一樣使用命令提示符——關於命令提示符的一切
已發表: 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. |
鏈接 | 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. |
芒沃爾 | 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. |
Mrinfo | 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. |
女士 | 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. |
執行程序 | 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. |
Net1 | 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. |
網絡配置文件 | 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. |
管理員 | 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. |
測試 | 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. |
備份 | 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. |
打開文件 | 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. |
尋路 | 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. |
五角大樓 | 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. |
參加 | 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. |
即插即用 | 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. |
流行音樂 | 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. |
電源配置 | 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. |
推送 | 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. |
發射器 | 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. |
流程 | 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. |
用戶 | 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. |
昆斯塔 | 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. |
拉斯迪亞 | 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. |
設計 | The rdpsign command is used to sign a Remote Desktop Protocol (RDP) file. The rdpsign command is available in Windows 7. |
試劑c | 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. |
雷吉尼 | 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. |
重新登錄 | 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. |
修復-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. |
執行 | 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. |
目錄 | 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. |
機械複製 | 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. |
RPC信息 | 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. |
魯納斯 | 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. |
魯文斯塔 | 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. |
掃描儀 | 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. |
施塔克斯 | 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. |
設置本地 | 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. |
設置 | 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. |
設置 | 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. |
展台 | 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. |
物質 | 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. |
系統信息 | 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. |
外賣 | 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. |
任務殺戮 | 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. |
Tasklist | 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. |
設置 | 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. |
FTP | 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. |
登錄 | 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. |
示踪劑 | 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. |
Tracert | 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. |
特康 | 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. |
迪斯康 | 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. |
茨基爾 | 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. |
打字機 | 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. |
祖蒂爾 | 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. |
卸載 | 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. |
Unformat | 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. |
解鎖 | 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. |
管理員 | 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. |
等待 | 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. |
管理員 | 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. |
韋庫蒂爾 | 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. |
工具 | 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. |
Winrm | 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. |
贏家 | 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. |
溫薩特 | 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. |
無線麥克風 | 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 頻道。 您也可以通過Facebook和Pinterest 聯繫我們。