How to execute a batch file without showing the execution?

G

Guest

Hi Everybody,

Is anybody knows how to Hide Execution of batch file at background? I mean
without displaying the DOS Prompt window while batch file is being executed.
I used code below to execute batch file. Is there other ways to do this? I
need help. Thanks.

Code:
System.Diagnostics.Process.Start("batchfile1.bat");


den2005
 
C

Cor Ligthert [MVP]

Den,

I thought that it was this one.

Using................
\\\
Process p = new Process();
p.WindowStyle = ProcessWindowStyle.Hidden;
p.FileName = "batchfile1.bat";
p.Start();
///
I hope this helps,

Cor
 
G

Guest

Thanks Cor, but I solved it earlier when I found clues on another forum at
VBCity.com. But thanks anyway.

den2005
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top