How to hide the console from within this code? Currently the cmd console is shown everytime I run this code.
protected override void OnStart(string[] args)
{
String applicationName = "cmd.exe";
// launch the application
ApplicationLoader.PROCESS_INFORMATION procInfo;
ApplicationLoader.StartProcessAndBypassUAC(applicationName, out procInfo);
}
How can I execute a *.bat file from here? Can I simply can substitute the "cmd.exe" with "xxx.bat"?