windows常用dos命令

2021-09-27 06:06:06 字數 2386 閱讀 9370

1. color

color /?   (檢視幫助資訊)

2.ping     (檢視網路是否暢通)

3.ipconfig      

ipconfig -all     (檢視主機詳細ip等資訊)

ipconfig /release   (釋放主機ip,造成斷網)

ipconfig /renew     (自動獲取主機ip)

4.systeminfo        (獲取系統詳細資訊)

5.arp -a         (檢視最近一次區域網中本機的arp快取表)

6.net view      (檢視區域網中主機名稱)

7.shutdown -s -t 180 -c "goodbye"      (關機命令,-s指關機;-t指在多少秒後關機;-c指彈出提示語句)

shutdown -a        (取消關機)

8.msg administrator "hello"         (向administrator使用者傳送訊息hello)

9.dir (檢視當前目錄)

10.cd   (切換目錄)       d:     (切換到d盤)

11.md hy    (建立hy目錄)

12.rd hy      (刪除目錄)

start 123.txt     (開啟123.txt檔案)

14.copy 123.txt c:\     (複製123.txt到c盤)

15.del c:\123.txt        (刪除c盤中123.txt檔案)

16.copy con pass.txt    (建立pass.txt檔案)

1213                     (輸入內容)

ctrl+z     enter      (結束輸入,建立完成)

17.type pass.txt       (在命令列介面中顯示pass.txt的內容)

18.ren 原檔名 新檔名    (重新命名)

19.move 123.txt hy     (移動123.txt到hy目錄下)

20.telnet 192.168.43.1       (遠端連線192.168.43.1主機 )(本機需要安裝telnet客戶端,雙方要開啟telnet服務)

21.net use k:\\192.168.3.100\c$               (將目標ip主機c盤對映給本地主機,建立為k盤)(會受防火牆影響)

net use k:\\192.168.3.100\c$/del         (刪除)

22.net start    (檢視已開啟服務)

net start 服務名    (開啟服務)

net stop 服務名     (停止服務)

23.net user    (檢視計算機存在的使用者)

net user hasee 123 /add      (建立hasee使用者,密碼為123)

net localgroup administrators hasee /add       (將hasee使用者加入到管理員組中)

net user hasee     (檢視hasee使用者資訊)

net localgroup        (檢視當前存在的組)

net localgroup "remote desktop users" hasee /add         (同上)

24.net user guest /active:yes      (啟用來賓使用者)  ----> net user guest 123   (建立123密碼) -----> net localgroup administrators guest /add     (將guest加入到管理員組)

25.netstat -an   (檢視當前埠狀態)

26.tasklist    (檢視系統程序)

taskkill /im cmd.exe    (結束cmd系統程序)

27.netsh wlan set hostednetwork mode=allow ssid=cc key=1234  (搭建乙個無線網路)------>  net wlan start hosted (開啟)

28.at(schtasks)  (計畫任務)

at 15:40 shutdown -s -t 180    

at id號     (開啟已註冊的某個任務)

at /delete   (停止所有任務)

at id號 /delete   (停止某個任務)

29.批處理

copy con x.bat

net user cr 123 /add

net localgroup administrators cr /add

shutdown -s -c "bye"

ctrl+z  enter (完成)

雙擊執行

常用的DOS命令windows

dir 無引數檢視當前目錄的所有檔案和資料夾 dir s 檢視當前目錄及子目錄的所有檔案 dir a 檢視包含隱藏檔案的所有檔案 dir ah 只顯示隱藏檔案 dir 檢視dir命令的引數 2.cd d 切換碟符 或者直接d cd 目錄命 切換到此目錄 cd 回到的上一級 cd 回到根目錄 3.md...

Windows中常用DOS命令

開啟控制台 win r,輸入cmd然後回車 開啟計算器 calc 開啟畫圖 mspaint 開啟記事本 notepad 進入下級目錄 cd 下級目錄名 返回上級目錄 cd 返回多級目錄 cd 幾個 就返回幾級 返回根目錄 cd 跨碟符操作 cd 完整的路徑名 建立空目錄 md 目錄名 刪除1空目錄 ...

Windows 常用的 DOS 命令

目錄 1 dos 簡介 2 命令列常用的單詞及縮寫 3 cmder控制台下的命令 4 命令的成功和失敗 5 把命令變成檔案 6 常用的 dos 命令 7 shutdown 關機命令 dos disk operation system,磁碟作業系統 是使用者與計算機之間進行互動的一種方式,有了它人們就...