home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cenvi23.zip
/
PROCLIST.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-28
|
687b
|
18 lines
EXTPROC CEnvi2
/***************************************************************************
*** ProcList.cmd - CEnvi2 program to list the names of processes running ***
*** ver.2 and the ID of each process. ***
***************************************************************************/
PList = ProcessList()
assert( NULL != PList )
Count = 1 + GetArraySpan(PList)
printf(" ID Parent name FullName\n");
printf("---- ------ -------- -------------\n");
for ( i = 0; i < Count; i++ ) {
printf(" %-6d %-6d %-9s %s\n",
PList[i].id,PList[i].parent,
SplitFileName(PList[i].name).name,PList[i].name)
}