3
votes

I want my Flash SWF to open an external EXE from the native operating system and I have tried:

protected function LaunchExe():void {
    flash.system.fscommand("exec","Test.exe");
}

But nothing happens. Am I doing something wrong with this command or do I need to something entirely differently?

1
Just wondering if you ever go the answer to this? I'm trying to open up a .exe file using a button in my Flash project, any help appreciated, thanks :) - user2945651
No, I did not. Kind of gave up on that feature for my app. Sorry. - Brian T Hannan
ah okay, I managed to sort it in the end now anyway, Thanks for the reply :) - user2945651

1 Answers

2
votes

It works only from within a projector file (executable Flash), and if you are running it like that, the application you are trying to launch should be in a subdirectory called fscommand.

From Adobe:

The exec command runs in the subdirectory fscommand only. In other words, if you use the exec command to call an application, the application must reside in a subdirectory named fscommand. The exec command works only from within a Flash projector file.