|
-
July 28th, 2005, 10:45 AM
#1
Is it possible to hide the command prompt?
I have this application that I wrote in C# that creates a report about issues on my network. I want this application to run all the time (it has a built in timer as to when to refresh the report) but I don't want the cmd window to be up all the time. Is there some way that I can hide that window while the program runs?
Thanks in advance for any help.
-
July 28th, 2005, 10:51 AM
#2
Re: Is it possible to hide the command prompt?
Why don't you write yourself a service ? It's really easy with .NET : there's loads of articles out there and some pretty useful MSDN pages too.
If you've got DevStudio Professional there's a wizard to create one too.
Have a look here :
http://msdn.microsoft.com/library/de...plications.asp
Darwen.
-
July 28th, 2005, 11:12 AM
#3
Re: Is it possible to hide the command prompt?
I am not sure f this helps, but I usually use the following command to hide a process:
Code:
Process prc;
prc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
-
July 28th, 2005, 12:52 PM
#4
Re: Is it possible to hide the command prompt?
 Originally Posted by khanafer
I am not sure f this helps, but I usually use the following command to hide a process:
Code:
Process prc;
prc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
What would i have to include as a "using" to use that code?
-
July 28th, 2005, 01:31 PM
#5
Re: Is it possible to hide the command prompt?
using System.Diagnostic;
hope it helps!
Ali
-
July 28th, 2005, 03:09 PM
#6
Re: Is it possible to hide the command prompt?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|