<< Click to Display Table of Contents >> Navigation: 3. Script Language > RES. - EXE-Resourcen managen > Resourcen-Commands |
MiniRobotLanguage (MRL)
RES.Extract All
Extract Resources from a given File
Intention
This command is extract Resources from an EXE- or DLL-File.
These Resources will be stored in Folders in a given path.
' 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 All|$$FIA|?path\
This Script will create these folders in ?path\.
Inside "ExtractedIco1" you will find Folders for any Language ID that had Icons.
Inside that Folder you will find the extracted Icons.
The same applies to the "ExtractedVer1" Folder.
Inside you will first find an folder for each language-ID.
And inside this Folder you find the 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.Extract All|P1|P2
RES.EA|P1|P2
Parameter Explanation
P1 - Path of EXE-File or DLL-File
P2 - Path of Target-Folder
Example
'**********************************************
'#EXE:?path\
'#SPI:ForceWrite
' The following files will be inserted into the Executable.
'#INC:?path\EXEs\Hello.exe
VAR.$$FIA=?path\EXEs\Hello.exe
RES.Extract All|$$FIA|?path\
ENR.
'**********************************************
' Here is a more complex Sample that uses "RES.LastVersion" to display the last extracted Versioninfo
VAR.$$EXE=Hello.exe
VAR.$$FIA=?path\EXEs\$$EXE
IEF.$$FIA
RES.Extract Version|$$FIA|?path\
' Display Path to Version-File
MBX.$$TXT
RES.Last Version|$$TXA
' Display Path to Version-File
MBX.$$TXA
' Display Content of Version File
VAR.$$TXB=$tos$
MBX.$$TXB
EIF.
ENR.
Remarks
-
Limitations:
Note that the Explorer has its own logic in displaying version Information, dependent on the windows version.
This may get into your way when you have multi-language resources.
See also:
• 2.2.1 '#ICO: - Choose own Icon
• 2.2.2 '#ICF: - Icon from Icon-Folder
• 2.2.3 '#ICS: / '#ICS: Icon-Set