This is a bit involved, but please help. I'm starting to fall way behind due to this problem. God bless you for your attention to this.
I've been using C# System.Diagnostics.Process to monitor the output of a command line utility.
The process I'm monitoring "internally" launches a second process, and as soon as it does, I receive no f...
I've been having a hard time getting the output of a "sub-process" (one launched internally by a blackbox process that I'm monitoring via c# System.Diagnostics.Process)
I took the advice given by the answer of my previous post:
here. And there you can find the details of what I've been going through.
At this point, although I'm able to...
I've found that the more I refine a question, the better help I get.
So, to make the question as complete as possible, I'm providing this C# WPF solution created in Visual Studio 2010 Beta 2.
This solution exactly reproduces the problem I'm having, as I try to capture output from ssh.exe using the System.Diagnostics.Process object.
To...
Using System.Diagnostics.Process object, in c#, I have an "already running process" that I would like to send standard input to (after another process indicates that the time is right).
Changing the StartInfo, on the "already running proccess (to redirect standard input), is not effective, because those settings only effect processes yo...
Using C#'s System.Diagnostics.Process object, I start an unmanaged exe, that later starts yet another unmanaged exe.
The 2nd exe is causing an unhandled-exception that I'd like my application to ignore, but can't seem to.
I'm using a try/catch statement when I start the first process, but it doesn't seem to catch the exception raised b...
Hi,
To solve an issue with sending e-mail through a smtp-server where e-mails are not getting sent, I was adviced to enable logging using System.Diagnosis.TextWriterTraceListener to trace the communication with the smtp-server to track any errors. I added the following to my web.config under the node:
<system.diagnostics>
<trace...
I'm trying to print multiple images using the default Windows dialog for printing images. Basically I'm trying to accomplish the same thing as when you select a couple of images in explorer and right-click + Print, but from code. I need to be able to specify multiple file names so multiple images can be printed on the same page (so not j...
Hi,
I got few web sites running on my server.
I have a "diagnostic" page in an application that shows the amount of memory for the current process (very useful).
Now this app is 'linked' to another app, and I want my diagnostic page to be able to display the amot of memory for another w3wp process.
To get the amount of memory, I use ...
We have a Page Method on a web page using ASP .Net. We tried to put in a trace statement using both System.Diagnostics and System.Diagnostics.Debug. In Visual Studio 2008, the break point is not even hit for the line, but other break points on other lines are hit.
There is no output from either method that we can see.
There is also a G...
Hi,
I'm getting some serious weirdness using FileVersionInfo.GetVersionInfo() and was hoping somebody might be able to help.
The basics of the issue is that I am iterating through all the files in a folder calling GetVersionInfo() on each. There are about 300 files. This works ok for all but 2 of the files. For these DLLs I am getting ...
I am using a thrid party software tool (command line tool) to merge PDF files together. Using C# I am attempting to use System.Diagnostics.Process to run the executable but I am coming up with a few errors depending on the parameter setup.
If UseShellExecute = true and RedirectStandardOutput = true I get:
The Process object must ...
Imagine, we have two .net applications. Application "A" starts application "B" using System.Diagnostics.Process class. Then "A" wants to kill "B" by method Process.Kill.
How "B" can determine that somebody is killing him?
...
I'm using c#'s System.Diagnostic.Process object. One of its properties is Id. The Id this produces is not the same as the PID, shown in Windows Task Manager. Why is this?
You see, once this process is started. It launches two other unmanaged processes, for which I can't explicitly get IDs for by object property references. I have to sea...
Hello.
I'm developing an ASP.NET WebForm application with Visual Studio 2008 SP1 and C#.
I've defined the following listener on Web.Config:
<system.diagnostics>
<trace>
<listeners>
<add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="D:\Logs\logWeb.txt" />
</listeners...
Hi there,
I'm working on an ASP.net app
I'm trying to execute a process remotely , using System.Diagnostics.Process class
here's my code:
ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\TestCommand.exe");
startInfo.Domain = "myDomain";
startInfo.UserName = "MyUserName";
SecureString sec = ne...
Hi there
How can I start a process on a remote computer in c#, say computer name = "someComputer",
using System.Diagnostics.Process class?
I Created a small Console app on that remote computer that just writes "Hello world" to a txt file,
and I would like to call it remotely
Console app path: c:\MyAppFolder\MyApp.exe
currently I have ...
I wrote a Log class derived from System.Diagnostics.TraceListener like so
public class Log : TraceListener
This acts as a wrapper to Log4Net and allows people to use System.Diagnostics Tracing like so
Trace.Listeners.Clear();
Trace.Listeners.Add(new Log("MyProgram"));
Trace.TraceInformation("Program Starting");
There is a request t...
Is there a maximum number of trace sources for app.config, and by definition listeners as well?
...
Hi I would like to know if there's an existing implementation of checking if application(Acrobat Reader) exist in your local machine before I start to open it.
for example I want to open a pdf file and i dont have an acrobat reader, so how will I check If I have an installed program for me to open the file?.
System.Diagnostics.Process...
I have one WPF application and one windows service as watch dog.
I want to check if my window application is halt or working fine. If it is halt i want to restart the application.
I see Process.responding property but it is not working in my service.
Any idea or other solution.
Process[] myProcesses;
myProcesses = Process.Ge...