home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
isrun01.zip
/
IsRunning.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-10-12
|
703b
|
18 lines
/************************************************************/
/* This Rexx script demonstrates how to determine whether a */
/* program is running or not */
/* */
/* Freeware, Stephane Bessette, 1997 */
/************************************************************/
/* Name of the program */
Program = 'Desktop'
/* Call IsRunning and discard its messages */
'@call IsRunning.exe' Program '2> NUL'
/* IsRunning returns 1 if the specified program is running */
if rc == 1 then say '"' || Program || '"' || " is running"
else say '"' || Program || '"' || " is not running"