Groups | Blog | Home
all groups > dotnet general > october 2005 >

dotnet general : How to execute a batch file without showing the execution?


den 2005
10/31/2005 5:11:01 PM
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
--
Cor Ligthert [MVP]
11/1/2005 7:20:31 AM
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

"den 2005" <den2005@discussions.microsoft.com> schreef in bericht
news:3D081763-4D13-4857-9C5E-B196D6FF8A94@microsoft.com...
[quoted text, click to view]

den 2005
11/2/2005 8:15:01 PM
Thanks Cor, but I solved it earlier when I found clues on another forum at
VBCity.com. But thanks anyway.

den2005
--
MCP Year 2005, Philippines


[quoted text, click to view]
AddThis Social Bookmark Button