J
Joe HM
Hello -
I have this strange intermittent problem where a mkdir command in a
batch file will create a file with the name of a directory instead of
the directory itself. This has happened for several people and I have
no clue what is causing it.
Here is the code ...
if not exist "C:\Program Files\X" mkdir "C:\Program Files\X"
if not %ERRORLEVEL% == 0 goto error
if not exist "C:\Program Files\X\Y" mkdir "C:\Program Files\X\Y"
if not %ERRORLEVEL% == 0 goto error
Could this be because I am creating two directories or is this a bug
with mkdir?
I/we have XP SP2.
Thanks,
Joe
I have this strange intermittent problem where a mkdir command in a
batch file will create a file with the name of a directory instead of
the directory itself. This has happened for several people and I have
no clue what is causing it.
Here is the code ...
if not exist "C:\Program Files\X" mkdir "C:\Program Files\X"
if not %ERRORLEVEL% == 0 goto error
if not exist "C:\Program Files\X\Y" mkdir "C:\Program Files\X\Y"
if not %ERRORLEVEL% == 0 goto error
Could this be because I am creating two directories or is this a bug
with mkdir?
I/we have XP SP2.
Thanks,
Joe