View Single Post
  #3 (permalink)  
Old 12-17-2002, 12:25 AM
SWFKit SWFKit is offline
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