Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-2002, 01:24 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default [quote]can't start an app

psmw says:

Quote:
i'm trying to start an exe file (direct x) using:
Shell.run("game/game.exe");
the application starts just for a moment before it crashes...
clicking game.exe in the directory works fine...
tom
Reply With Quote
  #2 (permalink)  
Old 12-17-2002, 01:25 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: [quote]can't start an app

psmw says:


Quote:

my game.exe is an application that uses additional files (inis and stuff)... so i have to change to this directory before starting the game... but how?
t.
Reply With Quote
  #3 (permalink)  
Old 12-17-2002, 01:25 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: [quote]can't start an app

Try
Code:
Shell.open(path_to_game.exe);
or
Code:
var path = Shell.getEnvironmentVariable("path");
var newpath = path + ";" + path_to_game.exe;
Shell.setEnvironmentVariable("path", newpath);
Shell.run("game.exe");
//The "game.exe" process uses the environment of the calling process
//restore the environment 
Shell.setEnvironmentVariable("path", path);
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:21 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.