批處理指令碼 - MD



此批命令在當前位置建立一個新目錄。

語法

md [new directory name]

示例

@echo off 
md newdir 
cd newdir 
cd Rem “Goes back to the parent directory and create 2 directories” 
cd.. 
md newdir1 newdir1 
cd newdir1 
cd 
cd.. 
cd newdir2 
cd

輸出

上述命令會產生以下輸出。

C:\newdir 
C:\newdir1 
C:\newdir2
batch_script_commands.htm
廣告
© . All rights reserved.