Home
Auto Debug On Line Help
 
User Script: Auto Debug System

startProcess

The startProcess function to start a process to monitor.

bool startProcess(
  BSTR szExe,    // Process Module Name
  BSTR szParam,  // Process parameters
  BSTR szPath    // Process run path
);

Parameters

szExe
Process Module Name which you want to monitor.
szParam
Process parameters. (optional)
szPath
Process run path. (optional)

Return Values

If the function succeeds, the return value is a nonzero value, Otherwise, return 0.

Remarks

startProcess is to start a new process to monitor.

Examples

VBscript Example:

sub main
  startProcess "Notepad.exe", "c:\a.txt"
end sub

JavaScript Example:

function main(){
  startProcess("Notepad.exe", "c:\a.txt");
}

Requirements

Auto Debug for Windows: Unsupport.
Auto Debug Professional: Requires version 5.0 or later.

See Also

Script Information Overview, Script Functions, attachProcess,addMenuItem ,killProcess ,saveLog

Copyright c 2003-2024, www.autodebug.com All Rights Reserved