All-In-One Protector

Flash application using exe files

Hide Navigation Pane

Flash application using exe files

Previous topic Next topic No directory for this topic  

Flash application using exe files

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

If you have a flash application that invokes exe files, the fscommand will be supported. It works as follows:

 

Extract the file from the encrypted database to the hard disk to a hidden place

Start the file

The file is not removed after termination

 

In case you load files in your exe file, you have to be aware that these files have to be available on the new directory. You have to extract these files first from the database to the directory (see below). If your exe file creates new files, you should always create it on the same folder or subfolder - but never use a hard coded path.

 

If you need to control, how an EXE or BAT file is used, you can add special commands to your flash application.

 

Use one of the following commands:


http://FILE:testfile.exe or http://FILE:testfile.exe$$START

This command extracts the exe file from the database to a temporary folder and starts it. The file must be an exe file. The All-In-One Player is still activated. When the All-In-One Player is closed, it tries to delete the exe file. This is only possible if the exe file was terminated - if it is still running it cannot be deleted.
http://FILE:testfile.exe$$STARTKEEP

Same as parameter $$START, but does NOT delete the exe file after termination.
http://FILE:testfile.exe$$COPY

Just extracts the file from the database, but do not start it. This command can be used with any file type like DLL or txt. If you need multiple files (e.g. not only exe files but also dlls or configuration files), you can first extract all these files and at the end start the main exe file using http://FILE:testfile.exe$$START . When the All-In-One Player is closed, it tries to delete all extracted files.
 
http://FILE:testfile.exe$$COPYKEEP
Same as parameter $$COPY, but does NOT delete the exe file after termination
 

You can add a pathname where you want to extract the files, in case you do not want to use the temporary folder.

 

Sample: loadMovie("http://FILE:testfile.exe$$COPYKEEP$$c:\mypath\testfile.exe",2)
 

would extract the file testfile.exe from the database to the folder c:\mypath

 

http://FILE:testfile.exe$$RUN

This commands starts an exe file which is already available on the CD or hard disk. It can be used to start any external application. The file is not deleted after termination. The file must be on the same folder like the All-In-One Player. A pathname cannot be used.

 

Sample: loadMovie("http://FILE:testfile.exe$$RUN",2);
The http://FILE: command also works with HTML and BAT files.

 

Invoke a BATCH file

You can invoke a .BAT file to perform any type of tasks. The .bat file must be on the same folder as the player. With a batch file you could e.g. invoke a huge AVI file, which will then be played in the default player.

 

Command: loadMovie("http://FILE:avistart.bat$$RUN",2)

 

The avistart.bat needs only the name of the avi file:

 

sample.avi

 

 

See also
All-In-One Player - Start Options