PDA

View Full Version : HiddenDosCommand fail, DosCommand works?


RobGalanakis
01-01-2009, 06:37 PM
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)

Bobo
01-01-2009, 07:14 PM
Reproduced, reported to Autodesk for fixing.

magicm
01-02-2009, 12:36 AM
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

CGTalk Moderation
01-02-2009, 12:36 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.