473,320 Members | 1,825 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

System.Diagnostic help

59
Hi,
I am trying to run the html help compiler "hhc.exe" from my C# application. I am providing a .hhc,.hhk and .hhp file to create .chm file. On running the code the .chm file is being created, however a command prompt like (black) window is also appearing displaying the compilation status.
I want to suppress the window and to display the status (that it shows) in a control of my application. I guess, I am overlooking some property of the process class.
Any help will be appreciated.

Best regards,
Sid
Jul 31 '08 #1
4 913
r035198x
13,262 8TB
Use

Expand|Select|Wrap|Line Numbers
  1. p.StartInfo.UseShellExecute = false;
  2. p.StartInfo.RedirectStandardOutput = true;
  3. p.Start();
  4. String output = p.StandardOutput.ReadToEnd();
You can then set the output to your controls.
Jul 31 '08 #2
babai28
59
Use

Expand|Select|Wrap|Line Numbers
  1. p.StartInfo.UseShellExecute = false;
  2. p.StartInfo.RedirectStandardOutput = true;
  3. p.Start();
  4. String output = p.StandardOutput.ReadToEnd();
You can then set the output to your controls.
Thank you very much my Friend. This looks very fine. The point is I am running the process code in a different thread altogether and the lines of the compilation status which will be achieved by:
Expand|Select|Wrap|Line Numbers
  1. string output = p.StandardOutput.ReadToEnd();
will read all the output text of the process and diplay it in the control at one go.
The requirement is updating the control on continuous basis as the compilation proceeds.
Jul 31 '08 #3
r035198x
13,262 8TB
You need to start another thread for reading the output then (perhaps another for reading the error stream as well.)
Details are explained in this article.
Jul 31 '08 #4
babai28
59
You need to start another thread for reading the output then (perhaps another for reading the error stream as well.)
Details are explained in this article.
Thanx a lot brother!
The purpose is solved!

Regards,
Sid
Jul 31 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Alex | last post by:
Hello, in my company, we have a diagnostic tool for hardware. Depending on the hardware projcet, a different project configuration is needed. The configuration file is written in XML and...
0
by: Stefan Turalski \(stic\) | last post by:
Hi, I need help with one thing - I've simple update application, it's chceck with FineInfo class if file in server has last write time > than file on my disc, if yes it is just update my file...
2
by: adish11 | last post by:
I'm using Web Application and want to execute an MSDOS executable with some parameters like this example: software.exe -i -x How do I use System.Diagnostic.Process to execute this .exe with...
5
by: Michael Johnson Sr. | last post by:
I am starting and stopping a process using System.Diagnostic.Process. aspnet_wp is running as system rather than machine (as per machine.config modification). When the process gets started, it...
0
by: Michael Johnson Sr. | last post by:
I am starting and stopping a process using System.Diagnostic.Process. aspnet_wp is running as system rather than machine (as per machine.config modification). When the process gets started, it...
5
by: Paul Bergson | last post by:
I have been trying to get a process to start up and run with arguments passed to it. I have gotten close (Thanks to help from this board) but I there is a failure while I'm running this because...
16
by: BHARAT MEHTA | last post by:
Hi Guys, I am little new to C. I wish to know the way to use the 'system' function. I mean I know that the function is used to run an external DOS command but every time I use it it returns -1...
8
by: Man with Oscilloscope | last post by:
goto jumping over vla -- diagnostic required? This is a question about C99, 6.8.6.1, example 2 (see test below). I'm currently working on updating an older compiler up to C99. The standard is...
5
by: santosh | last post by:
We are given the definition of a "diagnostic message" in 3.10 of the Standard. To quote: 3.10 1 diagnostic message message belonging to an implementation-defined subset of the implementation's...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.