How to execute a batch file without showing the execution?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Thanks Cor, but I solved it earlier when I found clues on another forum at
VBCity.com. But thanks anyway.

den2005
 
Back
Top