Resourcen-Commands

<< Click to Display Table of Contents >>

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

Resourcen-Commands

RES.Extract Version

Previous Top Next


MiniRobotLanguage (MRL)

 

RES.Extract Version

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

 
  Extrtact_Version_01

 

 

   Secondly it will display a Messagebox with the Content of the ".Ver"-file.
   The following picture shows only a part.

 

  Extract Version_02

 

This Script will create these folder with the name of the LanguageID for each available Version-Resource, in ?path\.

 

2016-08-17 20_12_10-

 

 

Inside that Folder you will find the extracted 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 Version|P1|P2

RES.EV|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\File.exe

VAR.$$FIA=?path\File.exe

' The second Parameter is the Path to the root the "Target Folder".

RES.Extract Version|$$FIA|?path\

ENR.

 

'**********************************************

  ' Here is a more complex Sample that uses "RES.LastVersion" to display the last extracted Versioninfo

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

 

 

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 All

  RES.Extract Icon

  RES.Extract Manifest

RES.Last Icon

  RES.Last Manifest

  RES.Last Version

  2.4.0. '#VER: - Version-Informations