Resourcen-Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > RES. - EXE-Resourcen managen >

Resourcen-Commands

RES.Extract All

Previous Top Next


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

2016-08-17 20_05_18-Test_Ver

 

   Inside "ExtractedIco1" you will find Folders for any Language ID that had Icons.

2016-08-17 20_12_10-

 

 

Inside that Folder you will find the extracted Icons.

2016-08-17 20_12_18-

 

 

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.

 

2016-08-17 20_15_27-0409

 

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.

 
 

VerFile

 

 

 

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:

 

! Ressourcen Commands

RES. - Manage Resources

  RES.Refresh Explorer

  RES.Change Icon

  RES.Change Manifest

  RES.Change Version

  RES.Extract Icon

  RES.Extract Manifest

  RES.Extract Version

RES.Last Icon

  RES.Last Manifest

  RES.Last Version

  2.2.1 '#ICO: - Choose own Icon

  2.2.2 '#ICF: - Icon from Icon-Folder

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