Browse Source

add createdir

Johann ELSASS 4 năm trước cách đây
mục cha
commit
34e5d99e49
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      winmake/createdir.bat

+ 12 - 0
winmake/createdir.bat

@@ -0,0 +1,12 @@
+@echo off
+if "%~1" == "" goto argument
+setlocal
+set DIRNAME=%~1
+set DIRNAME=%DIRNAME:/=\%
+if not exist "%DIRNAME%\" mkdir "%DIRNAME%"
+exit /b 0
+
+:argument
+echo Creates a directory if it doesn't exist.
+echo Usage: createdir [DIRNAME]
+exit /b 1