Hide command line when executing exe

Ok, so here is the command I'm running right now. When executing commands, the command line will be executed until the command is completed.

Is there a way to hide the command line?

Process.Start(
    "\\path_to_exe\Testing.exe ",
    Arg2 + Arg3 + Arg4 + Arg5 + Arg6 + Arg7 + Arg8 + Arg9 + Arg10 + Arg11)
+3
source share
3 answers
Dim p as New ProcessStartInfo(@"command", args)
p.WindowStyle = ProcessWindowStyle.Hidden
p.CreateNoWindow = true
Process.Start(p)
+8
source

I am not 100% sure why I was getting syntax errors based on @juergen d's answer, but I found this and it seems to work just as well.

Dim psInfo As New System.Diagnostics.ProcessStartInfo("path_to_exe", Arg2 + Arg3 + Arg4 + Arg5 + Arg6 + Arg7 + Arg8 + Arg9 + Arg10 + Arg11)
    psInfo.WindowStyle = ProcessWindowStyle.Hidden
    System.Diagnostics.Process.Start(psInfo)
0
source

Shell ("cmd.exe", AppWinStyle.Hide)

0
source

All Articles