1.增加相關內容:
1-1.增加:echo >G:\kl.txt 在G盤下新建一個kl.txt
1-2.增加:C:\Users\Wshy>md G:\alsjd 在G盤創建alsjd檔案夾
1-3.echo word is very well >G:\aa.txt 往G:\aa.txt寫入一段話word is very well(此時且新建了文本)
1-4.C:\Users\Wshy>echo xyz >>G:\KK.TXT 在文本里面追加內容
1-5.C:\Users\Wshy>copy con G:\cc.txt CTRL+Z 實作在文本里面連續寫入內容
2.洗掉相關內容:
2-1.洗掉:C:\Users\Wshy>del G:\hello.txt 洗掉G盤下的hello.txt檔案
2-2.洗掉::G:>md 123 洗掉G磁盤下的123檔案夾(注意rd命令不能洗掉檔案,例如:G:>md 123.txt 此時是不會成功的,只能洗掉檔案夾)
3.修改相關內容:
3-1.C:\Users\Wshy>ren G:\kyx ztt 修改檔案夾名稱
3-2:\Users\Wshy>ren G:\kk.txt aa.txt 把kk.txt名稱修改為aa.txt
3-3.C:\Users\Wshy>echo aaaaaa >G:\aa.txt 修改aa.txt檔案夾里面的內容,且會覆寫原來有的內容
4.查看相關內容:
4-1.C:\Users\Wshy>G: G:>dir kugou\ 打開G下的kugou檔案夾
4-2.查看:C:\Users\Wshy>G: G:>dir G:>kk.txt 查看G盤下kk.txt的內容
4-3.C:\Users\Wshy>type G:\kk.txt |more 實作文本分頁顯示
5.其他相關DOS命令:
5-1.cls 清除當前命令
5-2…ipconfig /release 釋放IP
5-3.ipconfig /renew 重新獲得IP
5-4.arp -a 查看arp快取表
5-5.shutdown -s(關機) -t(指定時間) -c “(寫入內容)”
5-6.取消關機 shutdown -a
5-7.msg wshy “hello,goood afternoon” 在計算機上給wshy賬戶發送“hello,goood afternoon”
舉例:5-7:


轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/258721.html
標籤:其他
下一篇:C語言學習
