JAVA基礎–cmd命令
常用cmd命令行,很簡單
- md(make directory):創建文件夾 如:md test1;
- rd(remove directory):刪除空文件夾 如:rd test1;若文件夾包含其他文件,則無法刪除;
- del : 刪除單個文件 如 del 1.doc;刪除 所有doc後綴的文件 如del *.doc;刪除包含文件的文件夾 del test1 再選擇 Y;
- cd.. 返回上一級;注意cd後帶兩點;
- 返回當前目錄的根目錄 cd/
- cd 進入當前目錄某文件夾 cd test1
- 進入某盤,直接輸入盤符 如 d:
- 查看當前目錄含有哪些文件夾及文件,直接輸 dir
- 當前文件夾下創建單個文件 :type nul>1.txt 創建1.txt文件,內容為null;或者 echo null>2.doc 創建名為2的doc文件,內容為空;