Radu Ionascu

Radu Ionascu

  • NA
  • 7
  • 8k

Process.start(msinfo32) arguments problem

Nov 19 2010 1:47 AM


Hy,
I want to use "msinfo32 /nfo path"
My code is:
.......
string OutputFolder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
string arg = @"/nfo " + Path.Combine(OutputFolder, Environment.MachineName + ".nfo");
infoProcess.StartInfo.FileName = @"C:\Program Files\Comon Files\Microsoft Shared\MSInfo\msinfo32.exe";
infoProcess.StartInfo.Arguments = arg;
infoProcess.Start();
................
This code does nothing :(
Help pls

Answers (8)