Tasklist Walking

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Law

    Tasklist Walking

    Can anyone point me in the right direction with some code to 'walk' the
    Windows Tasklist?

    I need to be able to find out if a specific application is running.

    Many thanks in advance,

    Jeff Law
    New Zealand


  • Ken Tucker [MVP]

    #2
    Re: Tasklist Walking

    Hi,

    Simple example. Also look at Process.GetProc essesByName.

    Dim p As Process
    For Each p In Process.GetProc esses
    Trace.WriteLine (p.ProcessName)
    Next

    Ken
    ----------------
    "Jeff Law" <jefflaw@datama sta.co.nz> wrote in message
    news:uhwZcK1KEH A.3472@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Can anyone point me in the right direction with some code to 'walk' the
    > Windows Tasklist?
    >
    > I need to be able to find out if a specific application is running.
    >
    > Many thanks in advance,
    >
    > Jeff Law
    > New Zealand
    >
    >[/color]


    Comment

    • Armin Zingler

      #3
      Re: Tasklist Walking

      "Jeff Law" <jefflaw@datama sta.co.nz> schrieb[color=blue]
      > Can anyone point me in the right direction with some code to 'walk'
      > the Windows Tasklist?
      >
      > I need to be able to find out if a specific application is
      > running.[/color]

      Don't know what you mean, but the System.Diagnost ics.Process class might
      help you.


      --
      Armin

      How to quote and why:



      Comment

      • Jeff Law

        #4
        Re: Tasklist Walking

        Many thanks Ken!

        That's a heap easier than the way we did it in VB6!!!

        Jeff Law
        DataMasta Limited
        New Zealand

        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        Working...