View Full Version : Fscommand Exec
bread_man
11-07-2002, 03:53 PM
Hi friends,
Thanks for all the help in the past. I really need help on this one ASAP if you can!
I am trying to use fscommand to launch 3 applications. I created fscommand directory and stuck the exe's in there and they work fine.
Problem is that I have a fouth application with the same exe name and a same supporting directory name. So, I can't just dump the exe in the fscommand directory. I have to put the whole thing in a new sub.
So, I can't use this (which works!)
on (press) {
fscommand("exec", "startCBT.exe");
}
cuz startCBT.exe needs to be in the fscommand/newFolder/ sub dir.
I tried using this, but it just doesn't work!
on (press) {
fscommand("exec", "./newFolder/startCBT.exe");
}
I tried many variations of the syntax and none work. I have an urgent deadline and can't find any support on this issue at Macromedia. If anyone can assist, it would be greatly appreciated!
Thanks so much!
bread_man
CyanBlue
11-07-2002, 04:59 PM
Howdy... :)
Create a batch file named runCBT.bat and the content of that batch file will be
./newFolder/startCBT.exe
Put the batch file into the fscommand directory...
And use this within the FScommand...
fscommand("exec", "runCBT.bat");
See if it works and let me know... :)
bread_man
11-26-2002, 04:17 AM
I just realized I never got back to you! Thanks for the help back there. That solution worked. I wish that batch files didn't have to be called, but to get the exe's in subfolders, this appears to have been the only solution.
Thanks!
CyanBlue
11-26-2002, 10:16 AM
Glad to be of your service... :)
nazura24
10-06-2004, 06:55 AM
i tried in flash mx 2004...i publish in flash player 7 as .swf and .exe but it's not functioning..could you please tell me if i must configure something.
planetfall
01-19-2006, 07:25 PM
how does one create a batch file? is there a program for this?
so this is the sort of thing we have to do to expect a little bit of funcionality from flash these days?
this is what they call an upgrade? i hope adobe manages to clean up the mess macromedia left for them.
planetfall
01-19-2006, 08:10 PM
btw, your solution did work, seems like a lot of extra work to get flash to do something so simple
that batch file stays open, i have gotta figure a way to close it after it launches...
CyanBlue
01-19-2006, 09:02 PM
so this is the sort of thing we have to do to expect a little bit of funcionality from flash these days?
I guess it depends on the definition of the functionality...
The reason why Macromedia did not allow you to execute anything from the hard drive is because they care about the security... Let's just say that you go to a website(or you download a Flash movie and run it from your desktop) and the Flash movie in that site executes a program from your hard drive or whatever... What is the possiblity that some guy try to run 'format c:'???
this is what they call an upgrade?
This has been there for a while, I think... (Yeah, I know I am still talking in the F4/5 forum...)
i hope adobe manages to clean up the mess macromedia left for them.
Would you care to clarify what you meant by the 'mess'???
Don't get me wrong... I am one of those people who yaps at Macromedia all the time, but I am not sure what you are yapping about...
planetfall
01-19-2006, 09:19 PM
the mess i mean is examples like this, where so many cd's that have been produced to launch executables the old way are now unusable
and the hurculean effort it takes just to get a simple thing like what i've been trying to do
the developers should have figured out some other way to secure flash without placing the burden on their loyal customers, why make us do the work? it should b an easy and fun experience to work with their product, not a stress fest.
thanks again!
CyanBlue
01-19-2006, 11:26 PM
the mess i mean is examples like this, where so many cd's that have been produced to launch executables the old way are now unusable
and the hurculean effort it takes just to get a simple thing like what i've been trying to do
If you have an old CD that was published as F5 projector, this new fscommand directory rule does not apply... It should work as is... Of course, you will get into that problem if you are not using the original version rather using FMX 2004 for it...
the developers should have figured out some other way to secure flash without placing the burden on their loyal customers, why make us do the work? it should b an easy and fun experience to work with their product, not a stress fest.
thanks again!
Well... I do agree you on that, but sometimes there are things that just cannot satisfy every single clients... Some clients get to get punished for the change that are meant to be helping majority of people... Well... Such is the life... ;)
Graeme Moodie
06-29-2006, 12:13 AM
Is it possible to use fscommand with exec to launch applications that are not in an fscommand folder, but somewhere else on your C drive - I am wanting to create a menu for launching Games that I have installed on the C drive. Is there a way to do this?
If possible urgent reply, as a very tight deadline is involved!?
CyanBlue
06-29-2006, 02:46 AM
How about calling a batch file that's sitting in the fscommand directory which is launching the application of your choice???
oldnewbie
06-29-2006, 06:59 AM
Yeah, that works... Outside of the shitty DOS window that comes up and to which nobody has ever posted an XP solution to run it minimized as you could for earlier OS's...
hnv1308
03-23-2007, 08:20 AM
Thank You, cyan blue, for fscomand
shahrooz232
01-23-2008, 10:06 AM
hi.
i cant use a batch file because my executable file has parameters, like "run.exe parm1 parm 2 ,...".
CyanBlue
01-23-2008, 01:52 PM
Howdy and Welcome... :)
That cannot be done in Flash... You need a third party projector tool to do that...
http://www.actionscript.org/forums/showthread.php3?t=156009
northcode
01-23-2008, 03:46 PM
If you don't need to pass the parameters from Flash, or there are a limited number of combinations you can use a different BAT file for each set of parameters. If you don't like the black DOS box you can get around it using my FREE Proxy (http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy) tool and save yourself a few hundred bucks.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.