ExecuteVirtualProcess
Previous  Top  Next


Function ExecuteVirtualProcess(CommandLine)

This function executes a command inside of the virtual environment. It can be used if you need to make changes to the virtual environment.

Parameters:

CommandLine  
[in] CommandLine represents the application and commandline parameters to execute outside of the virtual environment  

Returns:
Integer process ID, the process ID can be used with WaitForProcess  

Example:

ExecuteVirtualProcess("cmd.exe /c copy c:\systemfile.txt c:\virtualfile.txt")  
 
' Execute a command which requires quotes in the command-line  
ExecuteVirtualProcess("regsvr32 /s " & chr(34) & "c:\program files\my.ocx" & chr(34))