PDA

View Full Version : Starting .exe program from flash ?



klemenzi
April 30th, 2003, 06:13 AM
Hello !

I would like to know if I can start a .exe program from Flash.

Description: I have a CD with flash presentation (autorun) and additional .exe program. I would like to make a button in flash presentation that would start my .exe program whish is located in the same CD.

Any ideas would be appreciated

tx for your help

Klemen:)

upuaut
April 30th, 2003, 06:19 AM
yes you can.

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary372.html


The exec command can contain only the characters A-Z, a-z, 0-9, period ()., and underscore (_). The exec command runs in the subdirectory fscommand only. In other words, if you use the fscommand exec command to call an application, the application must reside in a subdirectory named fscommand.

I think the command would look something like.

on(release){
fscommand("exec","myAplication.exe");
}

klemenzi
April 30th, 2003, 06:21 AM
David tx for your speedy answer !

Will check your link and your command.

Tx againg
Klemen

upuaut
April 30th, 2003, 06:23 AM
it could also be

on(release){
fscommand("exec","fscommand/myAplication.exe");
}

but I'm not sure

pom
April 30th, 2003, 09:13 AM
No need to put fscommand, it's implied. ANd if you want to start an application that's not inside that folder, just create a batch file (.bat) in the folder fscommand.

pom :)

pom
April 30th, 2003, 09:15 AM
OK, silly me: what you quoted is true for Flash MX. With Flash 5, I think that your programme doesn't necessarily have to be in the fscommand folder. It was considered a problem for security, so they "fixed" it in Flash MX.

pom :phil:

Millad
August 26th, 2003, 04:02 PM
it dont work for me ? on Flash mx?

claudio
August 26th, 2003, 04:06 PM
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=29555&highlight=fscommand