This test works for me =>
Dim sUserPath As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
sUserPath += "\AppList.txt"
Dim proc = New Process With {
.StartInfo = New ProcessStartInfo With {
.FileName = "wmic.exe",
.Arguments = "/output:" + sUserPath + " product get Description, InstallDate, Version",
.UseShellExecute = False,
.RedirectStandardError = True,
.CreateNoWindow = True
}
}
proc.Start()
proc.WaitForExit()
Dim sStdErr As String = proc.StandardError.ReadToEnd()
Console.WriteLine("Exit code : {0}", proc.ExitCode)
Console.WriteLine("StdErr : {0}", sStdErr)