M
Mads Westen
Hi,
I need to run a batch file wich I would like to run minimized.
The batchfile runs a exe file with some arguments, and deletes af file, and
remanes another.
How can I do that minimized? I know I can make a vbs file, and use the
following line to minimize:
Set WSHShell = Nothing
But can I do the same thing in C#?
Im running the bat file using:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=true;
proc.StartInfo.FileName="C:\Sharp\Batfile.bat;
proc.Start();
In fact, I could run the exe file, with arguments direct from C#?
Best regards
Mads
I need to run a batch file wich I would like to run minimized.
The batchfile runs a exe file with some arguments, and deletes af file, and
remanes another.
How can I do that minimized? I know I can make a vbs file, and use the
following line to minimize:
Set WSHShell = Nothing
But can I do the same thing in C#?
Im running the bat file using:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=true;
proc.StartInfo.FileName="C:\Sharp\Batfile.bat;
proc.Start();
In fact, I could run the exe file, with arguments direct from C#?
Best regards
Mads