start a process and capture its output
-
I am writing an app that will reside on a W2k server. The app will be started from a shortcut on the users desktop. The app will allows users to construct a operating system level command with parameters and excute the command on the server. The command returns monitoring info (for those of you familiar with GIS and ArcSDE, it's the sdemon command, which is usually executed from the command line). I can do that part now by using the Shell function. The info returned is briefly displayed in a dos-like window which automatically closes when all info is displayed. I want to redirect the returned info (text) to the Windows Notepad app where the user can edit, save, etc. I have also tried using the functionality provided by System.Diagnostics.ProcessStartInfo but have so far been unsuccessful. Any ideas would be very helpful and much appreciated.