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

#AFT: - Run After Compile

Previous Top Next


Compiler-Directives

 

'#AFT: - Run Executable after Compile

Used to specify the name and path of an executable that is started immediately after Compile. It will become the name of the Executable as Commandline-Parameter.

 

 

Intention

 

'#AFT:?path\CopyStuff.exe

 

The '#AFT: Compiler Directive is used to start an Executable immediately after the Compilation of an executable is done.

 

There are two usage-modes:

 

1. You can start this way the created executable immediately after Compilation,

   Just write:

'#AFT:

 

 

2.  You can start another Executable, in this case the complete path of the just created executable will be added as a commandline-parameter.

 

 

You can specify Specialfolders or just a File-Name.

'#AFT:Tester.exe

 

This is just the same as:

 

'#AFT:?path\Tester.exe

 

In both cases, the executable will be started like this:

 

  (path)\Tester.exe (path and filename of created executable)

 

Below is an working Sample-Script.

 

 

Syntax:

 

'#AFT:[P1]

 

P1 -  Name and or Path of the Executable that should be started immediately
       after Compiling the program.

       The program will be started with the Path and filename of the created
        executable as commandline-parameter.  

 

'#AFT:Me

'#AFT:

 

In both cases, the executable that was just compiled will be immediately started without any commandline-Parameter.

 

 

 

 

Example:

 

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

' Compile-Time Commands

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

'

' The following line will start an Executable

' "Tester.exe" that must be located in ?path\

' that is the same folder where the Script is.

'

'#EXE:?path\

'#AFT:?path\Tester.exe

'

MBX.Thats me.

END.

 

'#EXE:?path\

'#SPI:ForceWrite

 

 

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

' TESTER.REM

' Compile this Script to "Tester.exe"

' Then use it with "#AFT:

' and see what happens.

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

'

' Commandline holen

$$FIL=$cmdexe$

IEF.$$FIL

 MBX. Die Datei $$FIL wurde kompiliert.  

ELS.

 MBX. Kann $$FIL nicht finden.

EIF.

ENR.

 

 

Parameter Explanation:

-

 

Remarks:

 

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).

 

 

Limitations:

 

-

 

 

See also:

 

    Specialfolders

    #ONCE / # OEND - Multiple Include Protection

    1.6 #INC: - Pre-Processor File-Include

 

See further:

2.0.0 Smarty's EXE-Compiler

2.1.1 '#RAU: - Run As User

2.1.2 #AOS: - Choose valid OS for executable

2.1.3 '#EXE: - Set Executable Path and Name

2.1.4 '#EXV: - Execute on System Desktop

2.1.5 '#HID: - Hidden Desktop Scripts

2.1.7 '#SPI: - Special Instructions

2.1.8 '#INC: - Include Files and Folders into the Executable

2.1.9 '#EXC: - Exclude Files or Dirs from Executable

2.1.A #LIB: - User-Library Path

2.1.B #CRY: - enCrypt the Script

2.1.C '#AFT: - Run AFTER Compile

2.2.1 '#ICO: - Choose own Icon

2.2.2 '#ICF: - Icon from Icon-Folder

2.2.3 '#ICS: / '#ICS: Icon-Set

2.3.0. '#MAN: - Manifest for Executable

2.3.1. '#MAU: - UI-Access for Manifest for Executable

2.4.0. '#VER: - Version-Informations

2.5.0. '#CIL: - Direct Compiler Interface