Creating remote process & StdOut
-
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
-
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
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|
-
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|
Oh I still could not find that link..could you please forward the remote process article. Thnaks! HK
Before c# there was darkness