Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Get running processes

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Get running processes
#11906
Posted by: mestrini 2007-09-25 18:24:29
I'm trying to get the list of the running processes but right now i'm at a dead end.
I've tried two command line tools and rxcmd.dll but the command() instruction never returns anything. I've also tried to FUNCDEF() several APIs and port some VB code but haven't managed much.

Anyone has any trick up the sleeve?

tx
Ricardo

PS:
Attached are the two programs i used without success.
Process.zip
Message2.
#11907
Posted by: PeterJ 2007-09-25 23:13:15
try PSLIST from Microsoft's PSTOOLS suite:

http://www.microsoft.com/technet/sysinternals/Utilities/PsTools.mspx
Message3. Re:
#11908
Posted by: mestrini 2007-09-26 00:04:06 Last edited by: mestrini 2007-09-26 00:06:16 (Total edited 2 times)
try PSLIST from Microsoft's PSTOOLS suite:

http://www.microsoft.com/technet/sysinternals/Utilities/PsTools.mspx

Same result; rxcmd returns nothing...

Unless i'm doing it wrong...

  
report.0=0
command("pslist.exe",report,,"HIDE") /*listing running processes*/

SAY report.0
	x=1
		IF report.0\=0 THEN DO UNTIL x=report.0
		SAY x report.x
		x=x+1
		END
tx anyway peter

EDIT:
Damn... i forgot to add quote around the variable to receive the result: 'report' in this case
Sorry for this.
Message4.
#11909
Posted by: Jeff Glatt 2007-09-26 00:20:31
There's an archived message somewhere that I showed how to list running processes. Mike has the code.
Message5.
#11910
Posted by: PeterJ 2007-09-26 00:55:50
it runs on my site, if I fully qualify the PSLIST's directory:

LIBRARY rxcmd
report.0=0
SAY command("c:\programme\reginald\pstools\pslist.exe",'report',,) /*listing running processes*/

SAY report.0
    x=1
        IF report.0\=0 THEN DO UNTIL x=report.0
        SAY x report.x
        x=x+1
        END
   

But I think I remember also the example Jeff is refering ...
Message6.
#11911
Posted by: mestrini 2007-09-26 01:31:12
I edited my post  before your answers where i said that i forgot to quote the variable to receive the console output.

pls delete (unless you find link to the code...)
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-4-19  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0