int Execute(string cmdLine, bool asSystemUser = undefined)

Executes the specified command line and returns the process id of the new process. Trust Level Required: High

Parameters

Name Description
cmdLine The command to execute.
asSystemUser Optional value that indicates whether to execute as the SYSTEM user or not. Note that the process will still run interactively in the current user session.

Return

The process id, or 0.