View Full Version : open windows explorer with MEL?

04 April 2009, 02:08 PM

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?


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

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

04 April 2009, 08: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. :)


CGTalk Moderation
04 April 2009, 08: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.