Notifications
Clear all

[Closed] HiddenDosCommand fail, DosCommand works?


makeDir "C:\\doscmdtest\\"
true
str = "rmDir -r C:\\doscmdtest\\"
"rmDir -r C:\doscmdtest\"
hiddendoscommand str
-- Error! CreateProcess(cmd /e:on /d /c "rmDir -r C:\doscmdtest\") failed!
false
doscommand str
2

DosCommand works while HiddenDosCommand does not? What the deuce? (not just rmDir, also happens with mkDir)

2 Replies

Reproduced, reported to Autodesk for fixing.

Apparently, if you specify the startpath parameter it does work:

HiddenDOSCommand "rmdir C:\\doscmdtest" startpath:"C:\\"

Out of curiosity, what is the -r switch supposed to do? The help (rmdir /?) only shows /S and /Q on my system (xp professional 64bit)

Martijn