Odd problem running dos command - Forum

Forum Navigation
You need to log in to create posts and topics.

Odd problem running dos command

At the Windows commandline, you can force the creation multi levels deep with the following command:

mkdir F:\A-1Test\one\two\three \p

without having to have even the root folder in place.  And it works fine from the actual commandline in shell.

But I cannot find a way to engage this from the RUN command in Visual Neo.  It always throws the error "File Not Found" which makes no sense as there are no files involved, just folders.

Does anyone have a workaround for this?

Thank you in advance.

Hi @rcohen,

Try this ..

Run "cmd.exe" "/c mkdir D:\A-1Test\one\two\three \p" "LoadComplete+Hidden" "" ""

 

 

luishp and CN_Iceman have reacted to this post.
luishpCN_Iceman

@darbdenral, thank you very much.  That did the trick.

I will have to figure out WHY that works now ;-)   Can ANY dos call use that format?

Thanks a bunch

 

 

@rcohen, no problem..

Pretty much, I know you can do quite a few commands this way. The “cmd /c” supports multiple commands in a single execution.  Just put your commands in quotes like below, you can stack them . ;)

cmd /c "mkdir test" "cd test"

 

 

 

 

CN_Iceman and danito have reacted to this post.
CN_Icemandanito

Was creating folders and subfolders your actual goal?
Provided you have appropriate folder permissions, the native CreateFolder action can do that.