View Full Version : Issuing cmd terminal commands with AS
eskepesky
02-20-2008, 05:49 PM
Hi, Im looking for away to issue terminal cmd commands from a flash application on a windows system. Im looking to execute either *.exe or *.jar files.
Dose anyone have any ideas?
Examples:
c:/examples/example.exe or
java -jar C:/examples/example.jar [args]
northcode
02-20-2008, 07:30 PM
You can run EXE files directly but they have to be in the special "fscommand" folder and you can't pass parameters to them. Your only option for commands with parameters (or sequences of commands) is to put the command(s) you want to execute in a BAT file and use fscommand EXEC to run the BAT file.
Be sure to check out Conquering FSCommand EXEC (http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy) and FSCommand EXEC is Broken in Flash CS3 (http://www.northcode.com/blog.php/2007/08/14/FSCommand-EXEC-is-Broken-in-Flash-CS3) for tips and tricks you can use to avoid problems and make your final product a little more professional looking without spending any dough.
eskepesky
02-21-2008, 09:51 AM
thx for the quick reply northcode...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.