Is a Program Running?
Well, isRunning is Available.


The OS/2 prompt shows programs running in Warp 4.0 of @Macarlo, Inc.



Stephane Bessette just reupload on Hobbes his freeware isRunning, made in 1997. The archive is isrun01.zip, 20.8K. Utility that queries the task list to determine whether a program is running or not. isRunning queries the switch list entries for a particular program. If thatprogram is running, isRunning will return 1. The source code is included.

How to use isRunning

Unzip the archive in appropriate directory. Open OS/2 prompt and type IsRunning.

Syntax:
IsRunning <name>
IsRunning -e
Where
<name> corresponds to the name of the program
-e instructs to enumerate the running tasks

Returns:
0. The program is not running
1. The program is running
2. Displayed help or enumerated the running tasks

Messages through standard error
to discard output: IsRunning <name> 2> NUL

Example:
IsRunning Desktop




CONTACT AUTHOR:

Stephane Bessette
stephb7@usa.net


@Macarlo, Inc.
@Macarlo's Shareware & Web
OS/2
Java Lobby Member
Java Site Accredited

[TOP] [HOME] [INDEX]