I'm gathering a series of logs for debugging purposes and I want to collect the MSInfo report. I figured the only way I could do this is to run it in a shell and then collect the resulting NFO file.
My problem appears to be in my implementation. Visual Studio complains:
Process '3516' was not found.
This is all Greek to me and I would love some help either getting my code working, or finding a better way to get a MSInfo32 report written to disk.
If CheckBoxSystemProfile.CheckState = CheckState.Checked Then
Dim strCommand As String
Dim retPointer As Integer
Dim millisecondsTimeout As Integer
millisecondsTimeout = 60000
retPointer = Shell("cmd.exe", AppWinStyle.MaximizedFocus)
strCommand = "C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32 /report C:\System.nfo"