PDA

View Full Version : open windows explorer with MEL?


Batching
04-20-2009, 03:08 PM
Hello,

I want to have a button in my script which can open a windows explorer window.
And it must directly open a certain folder based on the user input.
I searched the web and the forums, but couldnt find a good command.
I found this: system \"start explorer /n,/e, \" + $path"; in some other script
But couldnt get it to work in my own script.
Can you help me please?

Thanks,
Boyo

Keilun
04-20-2009, 03:50 PM
string $path = "C:\\FlexLM";
string $syscmd = "start explorer /n,/e, " + $path;
system( $syscmd );

ewerybody
04-21-2009, 08:55 AM
this for instance opens the explorer with the current scene file selected:
system ("explorer /select,\"" + toNativePath(`file -q -location`) + "\"");

Batching
04-21-2009, 09:06 AM
Thanks guys, it worked!
It was to open the folder to which I export an .obj file.
Saving me a lot of time searching in the long directory tree. :)

Boyo

CGTalk Moderation
04-21-2009, 09:06 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.