0

System.Diagnostics.Process.Start("net", "use" \server\z)

how do I hide the pop up window when the processes start ? thank you

aluminum_starch
  • 93
  • 1
  • 14

1 Answers1

0

Use the Startinfo property. See if something like this works:

            Dim NewProcess As New Process()
            NewProcess.StartInfo.UseShellExecute = False 
            NewProcess.StartInfo.FileName = "net"
            NewProcess.StartInfo.Arguments = "use \server\z"
            NewProcess.StartInfo.CreateNoWindow = True
            NewProcess.Start()
tinstaafl
  • 6,908
  • 2
  • 15
  • 22