Groups | Blog | Home
all groups > flash (macromedia) > september 2005 >

flash (macromedia) : Launching Multiple .exe files


Nichestuff
9/25/2005 11:27:40 PM
A Flash project calls for launching 2 SEPERATE exe files, (LabWindows CVI)
When the .exes were produced, they were given the SAME file names for both
versions, (.uir, .dll ., and several dozen supporting files/file folders) so
they can not be differentiated if they all reside together in a fscommand
folder. I can open one successfully using:

fscommand ("exec", "file.exe);

However, when I try to place the 2 versions into a subfolder within the
fscommand folder, it fails to launch.
Can FlashMX find a subfolder within the fscommand folder?
fscommand("exec", "./folder/file.exe); does not find it.

Any help with be appreciated. Thanks!
FlashJester Support Team
9/26/2005 11:17:23 AM
mm..

You must be doing something wrong here.

mmm.

You have

[quoted text, click to view]

try add 2 dots.

[quoted text, click to view]

We use this technique all the time with our tool JStart, you can use it
being used in the examples in the evaluation copy.

http://jstart.flashjester.com

Hope this helps.


--
Regards
FlashJester Support Team
e. - support@flashjester.com
w. - http://www.flashjester.com

There is a very fine line between "hobby" and
"mental illness."

support NO[at]SPAM northcode.com
9/27/2005 12:00:00 AM

Just put the BAT files in the FSCommand folder and you can put the EXE
files and all their dependencies on the CD where ever you like - BAT
files can launch files from anywhere ont he CD.

You might want to check out http://www.northcode.com/misc/proxy.zip
for a FREE utility I wrote that will let you run BAT files from Flash
and avoid the ugly DOS box. There's documentation in the ZIP file, and
there was a big discussion about it (and some other utilities I wrote)
in http://www.flashkit.com/board/showthread.php?threadid=519274 in the
Standalone and Applications forum.

All you need in your BAT file is two lines and you can leave out the
@echo off if you use my PROXY utility. The / at the beginning of the
path to file.exe makes sure the reference is relative to the root of
the CD. It's the closest thing you can get to an absolute reference
(which would be best) without using a third party tool.

@echo off
/folder/file.exe

Tim Goss
Northcode Inc.
http://www.northcode.com

On Tue, 27 Sep 2005 00:27:17 +0000 (UTC), "Nichestuff"
[quoted text, click to view]
Nichestuff
9/27/2005 12:27:17 AM
Thanks for the response. I had tried that code, which works on Flash 5, but
according to Macromedia Tech support, Flash MX & later can not open files from
a fscommand subfolder. They suggested a batch file to identify the two
distinct files. I believe this is what the third party plug-ins do. I have
tried MDM Zinc2, which runs the files in the background, but does not display
them correctly.
Now the challenge is to find the write coding for a .bat file...

Start
@echo off
folder/file.exe

launches program, but does not display, and opens two dos promt windows...
Ughhhh

Any suggestions would be a godsend.

Thanks.
Nichestuff
9/29/2005 3:46:53 PM
Thanks Nortchode. The Proxie.exe & Proxie.bat combo works well as long as I
have all the files in the fscommand folder, but once I try to locate my files
in a subfolder or outside the fscommand folder, the target .exe shows as
running in the taskbar, but is not visible on screen??? ( I am thinking this
may be a function of the target file and not the Proxie.exe solution)

Your Proxie.exe is a great alternative for launching pdfs without using the
getURL. Thanks again.
AddThis Social Bookmark Button