I tried that com but there seems to be a problem convert data types in CF..
It should return  a variant array of process id's and process names I tried
it with an Array(2)
Array(1), Struct.. but no luck ...anyone have ideas?

<CFOBJECT TYPE="COM"
    ACTION="create"
    CLASS=ASPsvg.Process
    NAME="Proc">
<cfset a = ArrayNew(2)>
<cfset a = Proc.GetProcessList()>

~ Justin MacCarthy

----- Original Message -----
From: Brian Mitter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 12, 2000 12:30 PM
Subject: Gettting a list of Proc's from an NT server


> Hi all,
>    Im trying to list processes that are running on our CF server (NT)
> Can I do this in any way with ColdFusion? Or do I have to use an ASP
object?
> I have found one called ProcACP on the server objects site which does
> exactly what I want.
> I can't get my head around how to call this with cfobject though.
> Can anyone quickly show me how to call this from CF please?
> This is the example that came with the object:
>
> ------------------cut ----------------------
> <%
>   Set ProcList = Server.CreateObject("ASPsvg.Process")
>
>   strProcessIDtoKill = Request.QueryString("ProcID")
>   if strProcessIDtoKill <> "" then
>     if ProcList.Kill(strProcessIDtoKill) then
>       Response.Write("Process " & strProcessIDtoKill & " terminated
> successfully<br>")
>     else
>       Response.Write("Process " & strProcessIDtoKill & " termination
> failed<br>")
>     end if
>   end if
>
>   varArray = ProcList.GetProcessList
>   Response.Write ("<table border=1 width=200>")
>   Response.Write ("<tr><td><b>Process ID</b></td><td><b>Process
> Name</b></td></tr>")
>   ArrayLimit = UBound(varArray) -1
>   For I = 0 to ArrayLimit
>     strProcessID = varArray(I)(0)
>     strProcessName = varArray(I)(1)
>     Response.Write "<tr><td><a href=""/scripts/proclist.asp?ProcID=" &
> strProcessID & """>" & strProcessID & "</td><td>" & strProcessName &
> "</td></tr>"
>   Next
>
>   Response.Write ("</table>")
> %>
> ------------------cut ----------------------
>
> I'm not interested in the first part for killing Proc's, just the latter
> part that LISTS the running ones.
> Has anyone done anything like this before?
>    Thanks
>      Brian
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to