So i’ve been writing some CD launchers recently with some handy tools on. One thing i had major trouble with was getting a Projector .exe to run programs from sub directorys. Luckily i figured it out
so heres how…
First in your CD/DVD root directory place a folder named “fscommand” this is the only folder which the projector will be able to see (from my experience, though there are some other methods about).
Then within your “fscommand” folder create a batch file (just create a .txt file and rename to .bat). I called mine “RUN.bat”.
Now right-click on the bat file and select “edit” (this will open the batch file with notepad).
now we need to put in some code.
Here is my example:
@echo off start "" "../programs/ProcessExplorerNt/procexp.exe" @exit
This path is relative to the “fscommand” folder (../ going up a directory to our root).
Now in your FLA actions layer:
fscommand("exec", "RUN.bat");
This will simply look into the “fscommand” folder and execute the bat file, which in turn will run our program.
also note that you must publish to Windows Projector (in your publish settings) and run the exe to test “fscommand”, ctrl + enter wont work here.
Hope this helps.
Stay Cool
-Bill





