This shows you the differences between two versions of the page.
userspace:library:getfileinfomap [2014/11/22 19:14] GEI created |
userspace:library:getfileinfomap [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== getLocalInfoMap.opsiinc ====== | ||
- | read file info from a interesting file ... | ||
- | \\ | ||
- | Tested with opsi 4.0.4\\ | ||
- | requiredWinstVersion >= 4.11.2.\\ | ||
- | By // | ||
- | |||
- | placed in global library, such as %ScriptDrive$/ | ||
- | call with | ||
- | <code winst> | ||
- | set $InterestingFile$ = " | ||
- | include_insert %ScriptDrive%/ | ||
- | </ | ||
- | |||
- | === === | ||
- | <code winst> | ||
- | ; This sourcecode is partly owned by uib.de ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | ; | ||
- | ; written by GEI (Detlef Krummel | ||
- | ; FILE " | ||
- | |||
- | requiredWinstVersion > | ||
- | ; for debugging setLogLevel = 7 | ||
- | DefStringList $FileInfoMap_List$ | ||
- | Set $FileInfoMap_List$ = getFileInfoMap($InterestingFile$) | ||
- | setLogLevel = 6 | ||
- | |||
- | ; ---------------- sample values ----------------------------------------------------------------------------- | ||
- | ; 0)Language name 0=Englisch (USA) 1)Language ID 0=1033 2)file version=281500746714761 | ||
- | ; 3)file version with dots=1.6.3.3721 4)product version=281500746714761 5)Comments= | ||
- | ; 6)CompanyName=ownCloud 7)FileDescription= 8)FileVersion=1.6.3.3721 | ||
- | ; 9)InternalName= 10)LegalCopyright= 11)LegalTrademarks= | ||
- | ; | ||
- | ; | ||
- | |||
- | DefVar $FileInfoMap_LanguageName0$ | ||
- | Set $FileInfoMap_LanguageName0$ = getValue(" | ||
- | DefVar $FileInfoMap_LanguageId0$ | ||
- | Set $FileInfoMap_LanguageId0$ = getValue(" | ||
- | DefVar $FileInfoMap_FileVersion0$ | ||
- | Set $FileInfoMap_FileVersion0$ = getValue(" | ||
- | DefVar $FileInfoMap_FileVersionWithDots$ | ||
- | Set $FileInfoMap_FileVersionWithDots$ = getValue(" | ||
- | DefVar $FileInfoMap_ProductVersion$ | ||
- | Set $FileInfoMap_ProductVersion$ = getValue(" | ||
- | DefVar $FileInfoMap_Comments$ | ||
- | Set $FileInfoMap_Comments$ = getValue(" | ||
- | DefVar $FileInfoMap_CompanyName$ | ||
- | Set $FileInfoMap_CompanyName$ = getValue(" | ||
- | DefVar $FileInfoMap_FileDescription$ | ||
- | Set $FileInfoMap_FileDescription$ = getValue(" | ||
- | DefVar $FileInfoMap_FileVersion$ | ||
- | Set $FileInfoMap_FileVersion$ = getValue(" | ||
- | DefVar $FileInfoMap_InternalName$ | ||
- | Set $FileInfoMap_InternalName$ = getValue(" | ||
- | DefVar $FileInfoMap_LegalCopyright$ | ||
- | Set $FileInfoMap_LegalCopyright$ = getValue(" | ||
- | DefVar $FileInfoMap_LegalTrademarks$ | ||
- | Set $FileInfoMap_LegalTrademarks$ = getValue(" | ||
- | DefVar $FileInfoMap_OriginalFilename$ | ||
- | Set $FileInfoMap_OriginalFilename$ = getValue(" | ||
- | DefVar $FileInfoMap_PrivateBuild$ | ||
- | Set $FileInfoMap_PrivateBuild$ = getValue(" | ||
- | DefVar $FileInfoMap_ProductName$ | ||
- | Set $FileInfoMap_ProductName$ = getValue(" | ||
- | DefVar $FileInfoMap_ProductVersion$ | ||
- | Set $FileInfoMap_ProductVersion$ = getValue(" | ||
- | DefVar $FileInfoMap_SpecialBuild$ | ||
- | Set $FileInfoMap_SpecialBuild$ = getValue(" | ||
- | </ |