Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimized mode for batch file

Status
Not open for further replies.

hugh999

MIS
Nov 29, 2001
129
IE
Hi

I have the following code that runs a btach file on my machine.
{
System.Diagnostics.Process.Start ("c:\\del.bat");
}

How do i run the batch file in Minimized mode.

Thanks
 
[tt]ProcessStartInfo startInfo = new ProcessStartInfo("c:\\del.bat");
startInfo.WindowStyle = ProcessWindowStyle.Minimized;

Process.Start(startInfo);[/tt]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top