EasyManua.ls Logo

VMware THINAPP 4.6 - Executevirtualprocess; Getbuildoption; Getfileversionvalue

VMware THINAPP 4.6
146 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VMware, Inc. 121
Chapter 9 Creating ThinApp Scripts
ExecuteVirtualProcess
TheExecuteVirtualProcess(CommandLine)functionrunsacommandinsideofthevirtualenvironment.
Youcanusethisfunctiontomakechangestothevirtualenvironment.
Parameters
CommandLine
[in]Representationoftheapplicationandcommandlineparameterstorunoutsideofthevirtual
environment.
Returns
IntegerprocessID.YoucanusetheprocessIDwiththeWaitForProcessfunction.See“WaitForProcess”on
page 125.
Examples
ExecuteVirtualProcess("C:\WINDOWS\system32\cmd.exe /c copy C:\systemfile.txt C:\virtualfile.txt")
Youcanrunacommandthatrequiresquotationmarksinthecommandline.
ExecuteVirtualProcess("regsvr32 /s " & chr(34) & "C:\Program Files\my.ocx" & chr(34))
GetBuildOption
TheGetBuildOption(OptionName)functionreturnsthevalueofasettingspecifiedinthe[BuildOptions]
sectionofthePackage.inifileusedforcapturingapplications.
Parameters
OptionName
[in]Nameofthesetting.
Returns
Thisfunctionreturnsastringvalue.Iftherequestedoptionnamedoesnotexist,thefunctionreturnsanempty
string(ʺʺ).
Examples
Package.ini contains:
[BuildOptions]
CapturedUsingVersion=4.0.1-2866
ThefollowinglineappearsinaVBSfile:
Value = GetBuildOption("CapturedUsingVersion")
GetFileVersionValue
TheGetFileVersionValue(Filename, Value)functionreturnsversioninformationvaluefromfilessuch
asaspecificDLL,OCX,orexecutablefile.Youcanusethisfunctiontodeterminetheinternalversionnumber
ofaDLLorretrieveDLLinformationaboutthecopyrightowneroraproductname.
Parameters
Filename
[in]Thenameofthefilenamewhoseversioninformationisbeingretrieved.
Value
[in]Thenameofthevaluetoretrievefromtheversioninformationsectionofthespecifiedfile.

Table of Contents

Related product manuals