ProcessCheck

 

ProcessCheck is a function that returns whether the process has been executed.

 

void @ProcessCheck(string process_name);

 

Parameter

string process_name : Executable executable file name (include process name without extension)

 

Return Values

0 : Not running.

1 : Running.

 

Example 1

i = @ProcessCheck("Studio");

Description : If Studio Editor is running, 1 is returned, or 0 is returned.

 

Example 2

i = @ProcessCheck("PLC_SCAN");

if( i == 0) @ProcessStart("C:\\AutoBase\\AutoBase_10_3_6_25\\PLC_SCAN.exe","");

Description : If the communication program(PLC_SCAN) is not running, run the communication program of the route.

 

Version Information

Support Version: 10.3.25 or later

 

Related Helps

@ProcessKill()

@ProcessStart()

@WinExec()