Question Process net file window popup

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
When the code hit compiler start there is this cmd window popup for a brief sec everytime even i did window style hidden. Is there a way to prevent that window to popping up and just execute silently?
VB.NET:
        Dim compiler As New Process()       
        compiler.StartInfo.FileName = "net"
        compiler.StartInfo.Arguments = "file"
        compiler.StartInfo.UseShellExecute = False
        compiler.StartInfo.RedirectStandardOutput = True
        compiler.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
        compiler.Start()
 
Back
Top