473,326 Members | 2,588 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,326 software developers and data experts.

Start 'invisible' process

Is there any Process options that will allow a DOS application to
execute without showing the cmd window? My application uses a small
DOS application to retrieve a list of machines, but I don't want the
window to pop up while this is happening, I want it to be an
"invisible" process. Is there any way to do this?

I've googled, and have come up with many options, to no avail. I've
tried creating a batch file with the appropriate switches, but doesn't
seem to turn out the way it should. Any ideas? Thanks
Jan 2 '08 #1
4 6568
tcomer,

I am not sure anymore, I thought it was this one, if not try another one it
is for sure there.

TheProcessStartObject.UseShellExecute = false;

Cor

Jan 2 '08 #2
Hi,

Take a look at either Process or ProcessStartInfo classes, one of them
provide a property for it.

Ok, I did the search :) It.s ProcessStartInfo.WindowStyle the oe that does
the trick

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"tcomer" <tc****@gmail.comwrote in message
news:40**********************************@e50g2000 hsh.googlegroups.com...
Is there any Process options that will allow a DOS application to
execute without showing the cmd window? My application uses a small
DOS application to retrieve a list of machines, but I don't want the
window to pop up while this is happening, I want it to be an
"invisible" process. Is there any way to do this?

I've googled, and have come up with many options, to no avail. I've
tried creating a batch file with the appropriate switches, but doesn't
seem to turn out the way it should. Any ideas? Thanks

Jan 2 '08 #3
Sorry for the late response, box crashed. I will try both of your
suggestion and post and update, thanks a lot for the help!; always
appreciated

Jan 8 '08 #4
Thanks for all of the help! The following code executes a command-line
based application in 'invisible' mode. The DOS window isn't shown upon
execution. Again, the help is very much appreciated. Sorry for the
redundant question.

Process proc = new Process();

// Run in 'invisible' mode
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
proc.StartInfo.FileName = path + "\\" + FILENAME;
proc.StartInfo.Arguments = CMD_PARAMS; // commandline params
proc.Start();
Jan 10 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark Adams | last post by:
I am a relative newbie to MySQL. I had a Postfix+Courier+MySQL mail server running for several months. It took me a week or so to get it up and running in September. Now, I did a clean upgrade to...
6
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
12
by: GTi | last post by:
I have small program that always must be running when a user is logged on. Since users can close this program I must create a program that always check if this program is running. So I created a...
0
by: henning.friese | last post by:
Hello NG, I'm need to write some code which creates tiff files from various document types (doc, pdf, xls). I want to do this by ShellExecuting (via System.Diagnostics.Process) the doc-files...
5
by: Paul | last post by:
Hi, I have a console app which is simply called from another app which passes a filename to it for processing. It does not display anything or require any input. All errors are sent to the...
15
by: Alan T | last post by:
I have a command line: myUtility.exe -1 -x myUtility.xml C:\Temp\MyDoc.doc C:\Temp\MyDoc.txt It works fine in the command prompt (ie. DOS prompt), it converted a doc file into test file.
10
by: Stephany Young | last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common or garden Console application, one can set the WindowStyle property of the StartInfo object to ProcessWindowStyle.Hidden...
8
by: Brina | last post by:
I am trying to write a program that will run in the background. To do this I need to make the main form invisible on start-up. In VB6 you just set the property visible=false. I see that in VB.Net you...
5
by: Dave | last post by:
I have a program that process files on a hard drive. Everything works fine, it shows a progress bar as it processes the file. The problem occurs when I have the program look for files to process on...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.