Since you are using .Net I'd suggest looking at using "Process" Shell is similar to Process.Start and you have more control:
https://www.dotnetperls.com/process-vbnet
CreateNoWindow: Specifies that you want to run a command line program silently without flashing a console window.
You can also trap warning and see if you want to act on them or ignore them.
Here is a sample I use just to give you the flavor:
Code:Dim mProcess As New Process mProcess.StartInfo.WorkingDirectory = "C:\_Team\_Deploy\SQL\LTR1TEAMSQLUA CMISQL\Rating" mProcess.StartInfo.FileName = "SVN" mProcess.StartInfo.Arguments = "update 2_ToDeploy" mProcess.StartInfo.RedirectStandardOutput = True mProcess.StartInfo.RedirectStandardError = True mProcess.StartInfo.UseShellExecute = False mProcess.StartInfo.CreateNoWindow = False mProcess = Process.Start(mProcess.StartInfo) pOutput = mProcess.StandardOutput.ReadToEnd pError = mProcess.StandardError.ReadToEnd mProcess.WaitForExit()




Reply With Quote
