<< Click to Display Table of Contents >> Navigation: 2. Components > 2. EXE-Compiler > Smart Package Robot 's "Script to Executable" Compiler |
Compiler-Directives
#EXV: - Execute via System
Used to start the Automation on the Hidden System Desktop
Intention
This Compiler-Directive enables you, to start your compiled SPR-Skript on the "Hidden System Desktop".
Generally 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).
'#EXV:
The '#EXV: Compiler Directive is used to have the compiled executable start up on the "Hidden System Desktop".
For this it must be started with full Admin-Rights!
If there is no such Compiler Directive, the compiled Executable will start on the actual User Desktop.
To take a look on the Hidden System Desktop. follow the steps here.
You do not need to specify an additional parameter to '#EXV.
Use the HDC.0 command to prevent your Clients from entering the Hidden Desktop.
Syntax:
'#EXV:[P1]
P1 - (optional) Name that will be used internally. If you use several Skripts at the same time with '#EXV.
then this name should not be equal. Otherwise you can omit P1.
Example:
'----------------------------------------
' Compile-Time Commands
'----------------------------------------
'
' The following line will make the compiled
' executable start up on the Hidden System Desktop.
' It will only work if the Script has full admin-rights.
' To see the Message box, you need to switch to the System Desktop.
'
'#EXV:Youdontseeme
'
MBX.I am the Smart Package Robot!
END.
Parameter Explanation:
-
Remarks:
Limitations:
'#EXV: does NOT cooperate with '#RAU: at this time. You can only use one of these in one compiled executable.
In case you would need both, try using '#RAU: and then start another compiled executable using EXV.-Command.
This Feature requires Windows Vista or higher.
See also:
• HDC. - Hidden Desktop Control
• #ONCE / # OEND - Multiple Include Protection
• 1.6 #INC: - Pre-Processor File-Include