<< Click to Display Table of Contents >> Navigation: 3. Script Language > Filesystem-Commands > Filesystem-Commands |
MiniRobotLanguage (MRL)
GFL. Command
Get File Language
Intention
Returns the language from a file (exe or DLL).
VAR.§§FIL=?exepath\MR01.Exe
GFL.$$FIL|$$RET
DBP.$$RET
ENR.
will return the information in a variable.
You can choose the Format of the Result using P3:
$$FIL=?exepath\catseye.dll
GFL.$$FIL|§§RES|t
DBP.catseye.dll Sprache: §§RES
GFL.$$FIL|§§RES|c
DBP.catseye.dll Sprache: §§RES
GFL.$$FIL|§§RES|k
DBP.catseye.dll Sprache: §§RES
GFL.$$FIL|§§RES|a
DBP.catseye.dll Sprache: §§RES
GFL.$$FIL|§§RES|b
DBP.catseye.dll Sprache: §§RES
VAR.§§FIL=?exepath\MR01.Exe
GFL.$$FIL
' Show the content of the stack
STS.DUMP
MBX.!
ENR.
will return the information on the Stack (TOS).
You can see that in the picture below.
You can also specify the format of the result:
GFV.?exepath\catseye.dll|§§RES
DBP.catseye.dll Version: §§RES
will result in something like:
If you need to compare file-versions, to find out if a file is never or older, use IFL.
Syntax
GFL.[P1][|P2][|P3]
Parameter Explanation
P1 - Filename (if omitted its taken from TOS)
P2 - (optional) Variable or "-" to return the file-date to TOS.
P3 - (optional) t/c/k/a/b - specify the format of the result as follows:
t - Text-Resut
c - codepage
k - keyboard code
a - all -> returns multiple formats delimited by a "*"
b - both
Here is the Format for b and c
Example
'**********************************************
' GFL./GFV. - Sample
'**********************************************
$$FIL=?exepath\catseye.dll
GFV.$$FIL|§§RES|t
DBP.catseye.dll Sprache: §§RES
GFL.$$FIL|§§RES|c
DBP.catseye.dll Sprache: §§RES
'**********************************************
' GFL.- Sample
'**********************************************
DBP.===========================================
VAR.§§FIL=?exepath\MR01.Exe
GFL.§§FIL
DBP.MR01.exe Sprache: $$000
DBP.===========================================
GFL.?exepath\catseye.dll|§§RES
DBP.catseye.dll Version: §§RES
DBP.===========================================
'You can use a return variable instead of the stack
GFL.§§FIL|§§RES
DBP.Sprache: §§RES
DBP.===========================================
GFL.?exepath\catseye.dll|§§RES
DBP.catseye.dll Version: §§RES
DBP.===========================================
GFL.?wi\Notepad.exe|§§RES
DBP.Notepad Sprache: §§RES
DBP.===========================================
END.
Remarks
Here are the numeric values for the country code:
0000 = Language Neutral
0400 = Process Default Language
0436 = Afrikaans
041C = Albanian
0401 = Arabic (Saudi Arabia)
0801 = Arabic (Iraq)
0C01 = Arabic (Egypt)
1001 = Arabic (Libya)
1401 = Arabic (Algeria)
1801 = Arabic (Morocco)
1C01 = Arabic (Tunisia)
2001 = Arabic (Oman)
2401 = Arabic (Yemen)
2801 = Arabic (Syria)
2C01 = Arabic (Jordan)
3001 = Arabic (Lebanon)
3401 = Arabic (Kuwait)
3801 = Arabic (U.A.E.)
3C01 = Arabic (Bahrain)
4001 = Arabic (Qatar)
042B = Armenian. Unicode only (Windows 2000 and later).
044D = Assamese. Unicode only (Windows 2000 and later).
042C = Azeri (Latin)
082C = Azeri (Cyrillic)
042D = Basque
0423 = Belarussian
0445 = Bengali. Unicode only (Windows 2000 and later).
0402 = Bulgarian
0455 = Burmese
0403 = Catalan
0404 = Chinese (Taiwan Region)
0804 = Chinese (PRC)
0C04 = Chinese (Hong Kong SAR, PRC)
1004 = Chinese (Singapore)
1404 = Chinese (Macau)
041A = Croatian
0405 = Czech
0406 = Danish
0413 = Dutch (Netherlands)
0813 = Dutch (Belgium)
0409 = English (United States)
0809 = English (United Kingdom)
0C09 = English (Australian)
1009 = English (Canadian)
1409 = English (New Zealand)
1809 = English (Ireland)
1C09 = English (South Africa)
2009 = English (Jamaica)
2409 = English (Caribbean)
2809 = English (Belize)
2C09 = English (Trinidad)
3009 = English (Zimbabwe)
3409 = English (Philippines)
0425 = Estonian
0438 = Faeroese
0429 = Farsi
040B = Finnish
040C = French (Standard)
080C = French (Belgian)
0C0C = French (Canadian)
100C = French (Switzerland)
140C = French (Luxembourg)
180C = French (Monaco)
0437 = Georgian. Unicode only (Windows 2000 and later).
0407 = German (Standard)
0807 = German (Switzerland)
0C07 = German (Austria)
1007 = German (Luxembourg)
1407 = German (Liechtenstein)
0408 = Greek
0447 = Gujarati. Unicode only (Windows 2000 and later).
040D = Hebrew
0439 = Hindi. Unicode only (Windows 2000 and later).
040E = Hungarian
040F = Icelandic
0421 = Indonesian
0410 = Italian (Standard)
0810 = Italian (Switzerland)
0411 = Japanese
044B = Kannada. This is Unicode only (Windows 2000 and later).
0860 = Kashmiri (India)
043F = Kazakh
0457 = Konkani. This is Unicode only (Windows 2000 and later).
0412 = Korean
0812 = Korean (Johab)
0426 = Latvian
0427 = Lithuanian
0827 = Lithuanian (Classic)
042F = Macedonian
043E = Malay (Malaysian)
083E = Malay (Brunei Darussalam)
044C = Malayalam. Unicode only (Windows 2000 and later).
0458 = Manipuri
044E = Marathi. Unicode only (Windows 2000 and later).
0861 = Nepali (India). Unicode only (Windows 2000 and later).
0414 = Norwegian (Bokmal)
0814 = Norwegian (Nynorsk)
0448 = Oriya. Unicode only (Windows 2000 and later).
0415 = Polish
0416 = Portuguese (Brazil)
0816 = Portuguese (Standard)
0446 = Punjabi. Unicode only (Windows 2000 and later).
0418 = Romanian
0419 = Russian
044F = Sanskrit. Unicode only (Windows 2000 and later).
0C1A = Serbian (Cyrillic)
081A = Serbian (Latin)
0459 = Sindhi
041B = Slovak
0424 = Slovenian
040A = Spanish (Traditional Sort)
080A = Spanish (Mexican)
0C0A = Spanish (Modern Sort)
100A = Spanish (Guatemala)
140A = Spanish (Costa Rica)
180A = Spanish (Panama)
1C0A = Spanish (Dominican Republic)
200A = Spanish (Venezuela)
240A = Spanish (Colombia)
280A = Spanish (Peru)
2C0A = Spanish (Argentina)
300A = Spanish (Ecuador)
340A = Spanish (Chile)
380A = Spanish (Uruguay)
3C0A = Spanish (Paraguay)
400A = Spanish (Bolivia)
440A = Spanish (El Salvador)
480A = Spanish (Honduras)
4C0A = Spanish (Nicaragua)
500A = Spanish (Puerto Rico)
0430 = Sutu
0441 = Swahili (Kenya)
041D = Swedish
081D = Swedish (Finland)
0449 = Tamil. Unicode only (Windows 2000 and later).
0444 = Tatar (Tatarstan)
044A = Telugu. Unicode only (Windows 2000 and later).
041E = Thai
041F = Turkish
0422 = Ukrainian
0420 = Urdu (Pakistan)
0820 = Urdu (India)
0443 = Uzbek (Latin)
0843 = Uzbek (Cyrillic)
042A = Vietnamese
Limitations:
-
See also:
• IFL. / NFL. - If File Language