<< Click to Display Table of Contents >> Navigation: 3. Script Language > RES. - EXE-Resourcen managen > Resourcen-Commands |
MiniRobotLanguage (MRL)
RES.Last Version
Get the Path and Data from the last extracted Version Information
Intention
This command is used to get the Data from the last extracted Version Information.
The command will get the Path to the last extracted Version-File into a Variable, and the Data of the File on the Top Of Stack $tos$.
To see the effect of the Program, its necessary to first "extract" an Version Information.
The command can also be used after an "RES.Extractr All".
Here is a Sample-Script.
' This is the path to the Source-File to be extracted
VAR.$$FIA=?path\File.exe
' The second Parameter is the Path to the root the "Target Folder".
RES.Extract Version|$$FIA|?path\
MBX.$tos$
' To analyze the Version-Information in the Script, you can use
RES.Last Version|$$TXT
VAR.$$TXA=$tos$
' The Version-Info is now in $$TXA
MBX.$$TXA
ENR.
This Script will display fist this Messagebox with the path to the ".Ver"-File.:
Secondly it will display a Messagebox with the Content of the ".Ver"-file.
The following picture shows only a part.
This Script will create these folder with the name of the LanguageID for each available Version-Resource, in ?path\.
Inside that Folder you will find the extracted Version Information for each Language-ID.
In most cases the generated ".ver"-File will look somehow like the file below.
It has an own "Pseudocode"-Format.
It is not possible to import this file anywhere. Its just for reading and analyzing.
Syntax
RES.Last Version|P1
RES.LV|P1
Parameter Explanation
P1 - Variable that will get the Path to the last extracted Manifest-File.
Example
' This is the path to the Source-File to be extracted
VAR.$$FIA=?path\EXEs\Hello.exe
' The second Parameter is the Path to the root of all "Target Folders".
RES.Extract Version|$$FIA|?path\
MBX.$tos$
' To analyze the Version in the Script, you can use
RES.Last Version|$$TXT
VAR.$$TXA=$tos$
' The Version-Data is now in $$TXA
MBX.$$TXA
ENR.
Remarks
-
Limitations:
-
See also:
• 2.4.0. '#VER: - Version-Informations