home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / cenvi29.zip / PROCLIST.CMD < prev    next >
OS/2 REXX Batch file  |  1994-03-08  |  682b  |  18 lines

  1. EXTPROC CEnvi
  2. /***************************************************************************
  3.  *** ProcList.cmd - CEnvi program to list the names of processes running ***
  4.  *** ver.1          and the ID of each process.                          ***
  5.  ***************************************************************************/
  6.  
  7. PList = ProcessList()
  8. assert( NULL != PList )
  9. Count = 1 + GetArraySpan(PList)
  10. printf(" ID   Parent  name      FullName\n");
  11. printf("----  ------  --------  -------------\n");
  12. for ( i = 0; i < Count; i++ ) {
  13.    printf(" %-6d%-7d%-10s%s\n",
  14.           PList[i].id,PList[i].parent,
  15.           SplitFileName(PList[i].name).name,PList[i].name)
  16. }
  17.  
  18.