I am using the following code:
Dim si As New ProcessStartInfo
si.CreateNoWindow = True
si.UseShellExecute = False
si.WindowStyle = ProcessWindowStyle.Hidden
si.FileName = "notepad.exe"
Process.Start(si)
This is just an example, but I would like to start my application in hidden mode AND redirect output. But this does not work! Any ideas why the above code does not work?
Dim si As New ProcessStartInfo
si.CreateNoWindow = True
si.UseShellExecute = False
si.WindowStyle = ProcessWindowStyle.Hidden
si.FileName = "notepad.exe"
Process.Start(si)
This is just an example, but I would like to start my application in hidden mode AND redirect output. But this does not work! Any ideas why the above code does not work?