PDA

View Full Version : Why cannot run DOS command in MEL? I need help!~


lxl110000
11-17-2009, 09:17 AM
string $cmd = "net use \\\\192.168.19.21 (http://forums.cgsociety.org/) /user:3duser 3duser";
system $cmd;
source "//192.168.19.21/MayaPlugins$/MayaMenu.mel";

or -----------------------------------------------

global proc abScriptMenu(){
string $cmd = "net use \\\\192.168.19.21 (http://forums.cgsociety.org/) /user:3duser 3duser";
system $cmd;
}
global proc abScriptMenu1(){
source "//192.168.19.21/MayaPlugins$/MayaMenu.mel";
}
abScriptMenu;
abScriptMenu1;

Today, I would upper code into userSetup.mel file, then restart Maya, I try could run MayaMenu.mel file on server. Result, I found , Upper two line code cannot run at same time.

Who can help me !
Thanks !
Regards !

lxl110000
11-17-2009, 09:26 AM
After run show under error !
// Error: source "//192.168.151.22/MayaPlugins$/NDMayaMenu.mel"; //
// Error: Line 5.61: Cannot find file "//192.168.151.22/MayaPlugins$/NDMayaMenu.mel" for source statement. //

norbertnacu
11-18-2009, 02:22 PM
Solution Deleted

lxl110000
12-08-2009, 12:41 AM
Oh, My friends !

Don't download your file.

Have you some other realise method ?

For example. Run Mel using python on local network.

Thanks !

Regards.

CGTalk Moderation
12-08-2009, 12:41 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.