YMKDIR does not raise ErrorLevel if directory creation failed
Closed this issue · 2 comments
aleaksunder commented
Basically this in CMD will not ECHO:
"%yori_path%\ymkdir.exe" "A:\not\existen\drive\path"
IF ERRORLEVEL 1 (
ECHO ERROR!!!
)
aleaksunder commented
By the way RMDIR
does not raise ERRORLEVEL too if it fails to delete existen directory
aleaksunder commented
Thanks for the support! Tested a bit and it all works fine but I am not still pretty sure what MKDIR must return if a user tries to create a directory which is already exist... as for me than this is an error and ERRORLEVEL must be raised in this case