Your code need modifications
Dim application As New ProcessStartInfo("cmd.exe") With
{.RedirectStandardInput = True, .UseShellExecute = False}
Dim process As New Process
process = process.Start(application)
Dim command As String = "net use x: \\webtest01\c$ /USER:daylight\robbery TakeItNGo" _
& vbCrLf & "exit"
process.StandardInput.WriteLine(command)
process.WaitForExit()
process.Close()
To use standard input you need .RedirectStandardInput = True, .UseShellExecute = False
(Process.StandardInput Property ). And "exit" command is necessary to end the cmd
process.