how to open exe files that locate in several subfolders with flash projector (mx) ??

roronoah
roronoah used Ask the Experts™
on
Please apoligize my poor english ^^"

I'm using flash mx with fscommand like this...

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

and I put my exe file in the folder name "fscommand", it works with the file in the first level of that folder. But the problem is I have to separate the exe files in subfolders beneath the "fscommand" folder. Because each of exe files has its own group of coding links (I cannot change them as they were created by other people, and I cannot put them together too).

So I build subfolders A,B,C and D in the "fscommand" folder. Each of them contains exe file, now it's like this C://mainfolder/fscommand/A/aa.exe

I tried to change the code into this...

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

But it doesn't work.. T_T

Repeat again: I have to link all exe files in separate folder with one flash projector.. How can I do that? Please tell me exact code and what I have to do.. I am not good in coding at all.

thank you in advance :>

ps.. can I use flash 5 to do it? but I want it to be the last option as I have created all the story in flash mx and I don't want to redo it again in flash 5.

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2005
Commented:
1. http://www.flashgeek.com/tutorials/07_launchapp_01.htm
2. http://www.flashjester.com/?section=tricks_jtools_jstart
3. in flash:

fscommand("exec", "myexec.bat");

in the fscommand folder, the myexec.bat file with this code:

@echo off
start path/executable.exe
@exit

Author

Commented:
how can I create .bat file?  and what is the start path? Do I have to write it from "C://..." or just "foldername/filename.exe"?
Top Expert 2005

Commented:
>how can I create .bat file?

create a text file with notepad, rename it from file.txt to file.bat

>and what is the start path?

"start" is a command, it has to be this way
with path I men the path for your file, relative
ie:

@echo off
start folder1/myexe.exe
@exit
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
yes yes yes!!.. I got it.. :D
Can I ask you one more question? If I have to copy all my files to CD, what is the path I have to write in my .bat file?

cheers,
Top Expert 2005

Commented:
Well, I really don't know. I think this is a http://www.experts-exchange.com/Operating_Systems/ question.. :)

Author

Commented:
This is so strange... I'm working with 2 computers and my computer "A" can view the exe file by calling the bat file with the relative path like this

@echo off
start folder1/myexe.exe
@exit

alright.... but my computer "B" requires the full path like this

@echo off
start  \\user\desktop\test\fscommand\foldername\filename.exe
@exit

when I write them in CD, and open them in another computer, will it be a problem if I user the relative path only "folder1/myexe.exe"?
Top Expert 2005

Commented:
the relative should be the only one always working, because it's indipendent from the user name and machine file system.
to make major work with file, maybe you should use an application like this http://www.multidmedia.com/software/flashstudio/ or MM Director itself..

Author

Commented:
ok.. it's quite late now.. I will continue the rest tomorrow.. Thank you very much for your help.. You're really make my day..
:D

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start Today