Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. process

process

Scheduled Pinned Locked Moved C#
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    messages
    wrote on last edited by
    #1

    Hi everyone could you explain about GetProcessesByName,I saw MSDN but I could'nt understand is it true? GetProcessesByName same with GetProcessById ? GetProcessById needs to a PID and return a process but GetProcessesByName needs to process name(its really process name or application name?) and return arrays of processes

    OriginalGriffO 1 Reply Last reply
    0
    • M messages

      Hi everyone could you explain about GetProcessesByName,I saw MSDN but I could'nt understand is it true? GetProcessesByName same with GetProcessById ? GetProcessById needs to a PID and return a process but GetProcessesByName needs to process name(its really process name or application name?) and return arrays of processes

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      The MSDN text is pretty clear - you feed it the name of the executable file, and it returns al the processes that are currently running from that file:

              Process\[\] procs = Process.GetProcessesByName("chrome");
      

      Will give you a list of all the processes running the Chrome browser.

      If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups