Smart Package Robot 's "Script to Executable" Compiler

<< Click to Display Table of Contents >>

Navigation:  2. Components > 2. EXE-Compiler >

Smart Package Robot 's "Script to Executable" Compiler

#EXE: - Specify Name and Path of the Executable

Previous Top Next


Compiler-Directives

 

#EXE: - Executable Name

Used to specify the name and path of the executable that is to be created

 

 

Intention

 

Compiler-Directives start with the Sequence:

'#

Which is a comment-sign on the left and then the #.

 

Because of the comment sign, the running script ignores these commands at Runtime (at time of script execution).

 

'#EXE:

The '#EXE: Compiler Directive is used to change File-Name or File-Path of the final Standalone EXE-File.

 

If there is no such Compiler Directive, the default path for any created executable file is on the actual user's Desktop. The filename for the generated executable is by default the filename of the Main-Script-File, with a ".exe" instead of the ".mrt".

 

For example, if you compile the script "InstallMe.mrt". Then the final executable will be on your desktop with the Name "InstallMe.exe". Unless you specify something else using "'#EXE:".

 

You can specify Specialfolders or just a File-Name. Here are some examples:

 

' If you specify this:

'#EXE:

' The compiler assumes that you mean:

'#EXE:?path\

' and will treat it like that.

 

Therefore, if you write:

'#EXE:?path\

or

'#EXE:?path

 

then your executable will have the default filename and will be created in the same folder, where you have saved your scriptfile.

 

' You can also write this:

' '#EXE:Peter.exe

 

In this case, your scriptfile will be created in "?path\" with the name "Peter.exe". If you prefer to have it on the desktop, write:

 

'#EXE:?desktop\Peter.exe

 

In that case your executable will appear on the desktop.

If you just write:

 

'#EXE:Peter

your scriptfile will be created in "?path\" with the name "Peter.exe", as the ".exe" will automatically be added, if its missing.

 

 

 

Syntax:

 

'#EXE:[P1]

 

P1 -  (optional) Name and or Path of the Executable-Package that should be created.

 

 

Example:

 

'----------------------------------------

' Compile-Time Commands

'----------------------------------------

'

' The following line will change the target path for

' the EXE-Compiler.

'#EXE:?path\

'

EXO.?path\

MBX.!

END.

 

 

Parameter Explanation:

 

-

 

 

Remarks:

 

I f no '#EXE: is given, the Targetfile is been created on the current User-Desktop. The Filename of the Executable will be the name of the Main-Script File, with ".exe" suffix.

 

 

 

Limitations:

 

-

 

 

See also:

 

    Specialfolders

    #ONCE / # OEND - Multiple Include Protection

    1.6 #INC: - Pre-Processor File-Include