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. Creating remote process & StdOut

Creating remote process & StdOut

Scheduled Pinned Locked Moved C#
csharpquestion
3 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.
  • H Offline
    H Offline
    Harkamal Singh
    wrote on last edited by
    #1

    Is there a way to create pure C# remote processes and capture StdOut ? I am able to do this by calling PsExec.exe (from sysinternals) from Process class and capturing Stdout. I need an elegant way, Can Process class also create remote processes? Can System.ManagementObject call capture StdOut apart from creating remote processes? Thanks in anticipation HK

    Before c# there was darkness

    L 1 Reply Last reply
    0
    • H Harkamal Singh

      Is there a way to create pure C# remote processes and capture StdOut ? I am able to do this by calling PsExec.exe (from sysinternals) from Process class and capturing Stdout. I need an elegant way, Can Process class also create remote processes? Can System.ManagementObject call capture StdOut apart from creating remote processes? Thanks in anticipation HK

      Before c# there was darkness

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, the Process and ProcessStartInfo classes hold what you need. MSDN contains a simple example, where stdout (not stderr) is captured, and becomes available only when the EXE terminates. Using extra threads and some Stream methods can overcome these two limitations when necessary. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Voting for dummies? No thanks. X|


      H 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, the Process and ProcessStartInfo classes hold what you need. MSDN contains a simple example, where stdout (not stderr) is captured, and becomes available only when the EXE terminates. Using extra threads and some Stream methods can overcome these two limitations when necessary. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Voting for dummies? No thanks. X|


        H Offline
        H Offline
        Harkamal Singh
        wrote on last edited by
        #3

        Oh I still could not find that link..could you please forward the remote process article. Thnaks! HK

        Before c# there was darkness

        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