open windows explorer with MEL?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  04 April 2009
open windows explorer with MEL?


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
string $path = "C:\\FlexLM";
string $syscmd = "start explorer /n,/e, " + $path; 
system( $syscmd );
  04 April 2009
this for instance opens the explorer with the current scene file selected:
system ("explorer /select,\"" + toNativePath(`file -q -location`) + "\"");
  04 April 2009
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.

  04 April 2009
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 09:26 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.