@if "%1x" == "x" goto USE
@if NOT EXIST %1\. goto MDIR
@echo Directory %1 already exists ...
@goto GOTDIR
:MDIR
@md %1
@if ERRORLEVEL 1 goto ERR1
:GOTDIR
@cd %1
@if ERRORLEVEL 1 goto ERR2
@goto END

:ERR1
@echo ERROR: %ERRORLEVEL%: Unable to create %1 directory ...
@goto WAIT

:ERR2
@echo ERROR: %ERRORLEVEL%: Unable to enter %1 directory ...
@goto WAIT

:USE
@echo Enter the DIRECTORY NAME to create ...
@goto WAIT

:WAIT
@pause
@goto END

:END

