4.6

Table Of Contents
ThinApp User’s Guide
122 VMware, Inc.
YoucanretrievethefollowingvaluesfrommostDLLs:
Comments
InternalName
ProductName
CompanyName
LegalCopyright
ProductVersion
FileDescription
LegalTrademarks
PrivateBuild
FileVersion
OriginalFilename
SpecialBuild
Returns
Thisfunctionreturnsastringvalue.Iftherequestedfilenamedoesnotexist,orthefunctioncannotlocatethe
specifiedvalueinthefile,thefunctionreturnsanemptystring(ʺʺ).
Examples
FileVersion = GetFileVersionValue("C:\windows\system32\kernel32.dll," "FileVersion")
if FileVersion = "1.0.0.0" then
MsgBox "This is Version 1.0!"
End if
GetCommandLine
TheGetCommandLinefunctionaccessesthecommandlineparameterspassedtotherunningprogram.
Returns
Thisfunctionreturnsastringthatrepresentsthecommandlineargumentspassedtothecurrentrunning
program,includingtheoriginalexecutablefile.
Examples
MsgBox "The command line for this EXE was " + GetCommandLine
GetCurrentProcessName
TheGetCurrentProcessNamefunctionaccessesthefullvirtualpathnameofthecurrentprocess.
Returns
Thisfunctionreturnsastringthatrepresentsthefullexecutablepathnameinsideofthevirtualenvironment.
Inmostcircumstances,thispathisC:\Program Files\...,evenifthepackagesourcerunsfromanetwork
share.
Examples
MsgBox "Running EXE path is " + GetCurrentProcessName