ExecuteExternalProcess
Previous  Top  Next


Function ExecuteExternalProcess(CommandLine)

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

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:

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