Help with mkdir
Posted: 11 Oct 2011 03:59
Hi,
I am having trouble with the command "mkdir"/md. I have checked the cmd help (md /?) and it doesn't give me any syntax examples.
I want to make my batch file ask in which directory to make a folder, and my code is:
Any help would be appreciated,
Rileyh
I am having trouble with the command "mkdir"/md. I have checked the cmd help (md /?) and it doesn't give me any syntax examples.
I want to make my batch file ask in which directory to make a folder, and my code is:
Code: Select all
set /p config=Confirming that you have specified drive %var%? (type Y/N):
if /i _"%config% == _"Y" (md %var%:\%var2%) else goto :dir
if /i _"%config% == _"Y" (md %var%:\%var2%\%user%) else goto :dir
Any help would be appreciated,
Rileyh