<< Click to Display Table of Contents >> Navigation: 3. Script Language > RES. - EXE-Resourcen managen > Resourcen-Commands |
MiniRobotLanguage (MRL)
RES.Extract Manifest
Extract Manifest-Resources from a given EXE- or DLL-File
Intention
This command is extract Manifest-Resources from an EXE- or DLL-File.
These Resources will be stored in Folders with the name of the country code, in a given path.
Here is a Sample-Script.
' 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 Manifest|$$FIA|?path\
MBX.$tos$
' To analyze the Manifest in the Script, you can use
RES.Last Manifest|$$TXT
VAR.$$TXA=$tos$
' The Manifest is now in $$TXA
MBX.$$TXA
ENR.
This Script will display fist this Messagebox with the path to the ".Xml"-File.:
Secondly it will display a Messagebox with the Content of the ".Xml"-file.
The following picture shows only a part.
This Script will create these folder with the name of the LanguageID of the Manifest-Resource in ?path\.
Inside that Folder you will find the extracted Manifest as a ".XML"-File.
You can Load XML-Files with SPRE, just change the Filter to "XML-Files":
This may look somehow like here:
You can also open XML-Files with some advanced Text-Editor Programs. Here "Notepad++".
Another Option is the "XML-Notepad".
Syntax
RES.Extract Manifest|P1|P2
RES.EM|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
' 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 Manifest|$$FIA|?path\
MBX.$tos$
' To analyze the Manifest in the Script, you can use
RES.Last Manifest|$$TXT
VAR.$$TXA=$tos$
' The Manifest is now in $$TXA
MBX.$$TXA
ENR
Remarks
-
Limitations:
-
See also: