Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

running any exe file through maxscript
show user profile  yeyeb
I am sooo desperate plz tell me a command to open and run any exe file from maxscript...sniff
i need to open my game exe file through maxscript and give it parameters during its opening process.
but it can all be done if i jus had a command to open exe files.

puhhleeeasseee whaaa help me out AAASSSAAAPPP
read 2480 times
8/31/2009 4:57:55 PM (last edit: 8/31/2009 4:57:55 PM)
show user profile  Garp
ShellLaunch "C:\Program Files\Internet Explorer\iexplore.exe" "" for example.

read 2470 times
8/31/2009 5:16:06 PM (last edit: 8/31/2009 5:16:06 PM)
show user profile  yeyeb
WOW i was hoping for a quick reply and u gave me one thx a lot. btw wat is the second argument for shelllaunch command ?
read 2462 times
8/31/2009 5:35:22 PM (last edit: 8/31/2009 5:35:22 PM)
show user profile  Garp
I suppose that would depend on the application launched. If you know how to run your game and pass the parameters through a dos command, you can use the DOSCommand() method. Look up the maxscript user reference. Both functions are on the same page.

read 2460 times
8/31/2009 5:42:31 PM (last edit: 8/31/2009 5:42:31 PM)
show user profile  yeyeb
i will try that as soon as a made my app btw how can make a folder using DOSCOMMAND()
i am tryin to make a folder called "nex" in c:/ but none of the commands below work
DOSCommand "mkdir nex c:\"
DOSCommand "mkdir nex c:\\"

and like name of the command suggests, does it simply executes the commands given in cmd?
for instance if my cmd is set to path C:\> and wen i enter command "mkdir nex" it works
C:\>mkdir nex
read 2422 times
9/1/2009 2:21:49 PM (last edit: 9/1/2009 2:21:49 PM)
show user profile  Garp
I think the proper DOS syntax would be mkdir c:\nex. Or shorter md c:\nex.
Now maxscript understands the backslash as the escape character, so you need to double it in the string:
DOSCommand "md c:\\nex"

read 2407 times
9/1/2009 3:16:37 PM (last edit: 9/1/2009 3:17:19 PM)
show user profile  yeyeb
HOLY SHMOLY WACKAMOLY... how cud i not see that. yea srry for that noob ques. I made a noob boo boo.
read 2401 times
9/1/2009 3:27:35 PM (last edit: 9/1/2009 3:27:35 PM)
show user profile  yeyeb
i am again facing a problem the size of hulk hogan's biceps , i am trying to get the filepath of the bitmaps in the material that has been assigned to an object.

Ex: i made a material named "nex" in material editor with images assigned to diffuse, bump and specular tabs of the material "nex". wat comamnds shud i use to get the filepath of those images.

i need to know how can i access that path from the selected object or object name so i can copy them
and put in a desired folder (that i think i know) cuz wen i open .3ds format i don't see textures associated with it..

Btw about .3ds format i dunno wat i am doing wrong while exporting. I used to get the texture wen i used to open that .3ds file. Any suggestions on that will help me beat hogan in arm wrestling.
read 2383 times
9/2/2009 10:22:23 AM (last edit: 9/2/2009 10:22:23 AM)
show user profile  yeyeb
Nvm me got it

foo = $.material

that did the trick

btw i am still expecting answers to my querry about unable to see textures after export to .3ds
wen i import back to tex to 3ds its still not there and i use to get the tex wen i used to before
read 2376 times
9/2/2009 11:07:13 AM (last edit: 9/2/2009 11:07:13 AM)
#Maxforums IRC
Open chat window