MSINFO32.exe /report, /nfo not consistent from VB.NET app

S

sean_brandt

I have a VB.NET 2003 application that calls MSINFO32.exe to determine
System Information and write that information to a file.

This code works on my laptop and on one of my coworker's laptops;
however it doesn't work on several other of my coworkers' computers.
All are running WinXP.

Regarding the machines that it doesn't work on -- some have Visual
Studios, some don't.
Regarding the two machines that it does work on -- both have VB.NET
2003.

On one of the PCs that it doesn't work on -- yes, the user can run
MSINFO32 from a command prompt and output text files.

Here's a code snippet -- what am I missing?

'Run MSINFO32 & output the result as a .txt or .nfo
Dim SysInfoFilePath As
Dim MSINFO32proc As Process
SysInfoFilePath = Replace(System.AppDomain.CurrentDomain.BaseDirectory,
"bin\", "Output\SystemInformation.txt")
MSINFO32proc = Process.Start(MSINFOexe, "/report " & SysInfoFilePath)
'Wait until the process terminates (may take over a minute)
MSINFO32proc.WaitForExit()

'View the System Information if the checkbox is checked
Dim MSINFO32outputProc As Process = Process.Start(SysInfoFilePath)

Thanks,
-Sean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top