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
Loading
Sam HobbsPosted Nov 19, 2010, 4:15 PM
Note that Quote is the double-quote character.
Radu IonascuPosted Nov 19, 2010, 5:26 AM
One solution would be :
save on c:\, then file.move to my dir on desktop. I'll give it a try ...
Thanks for u're posts.
Regards, Radu
Manikavelu VelayuthamPosted Nov 19, 2010, 5:17 AM
Manikavelu VelayuthamPosted Nov 19, 2010, 5:04 AM
If your folder name contains any space like "Documents and Setting", its saving the file in the name of "Documents", that is the first part of the folder name.
Thats why its saving there.
If your folder name doesnt have any space, its storing correctly to that particular location.
Radu IonascuPosted Nov 19, 2010, 4:38 AM
How can I save it on Desktop?
Manikavelu VelayuthamPosted Nov 19, 2010, 4:23 AM
Just check in your c drive, whether its get saved like above.
Radu IonascuPosted Nov 19, 2010, 4:03 AM
infoProcess.StartInfo.Arguments = @"/nfo C:\test.nfo"; // is working
infoProcess.StartInfo.Arguments = @"/nfo " + Path.Combine(OutputFolder, Environment.MachineName + ".nfo");
// this is not working
Here OutputFolder is the path to Desktop\MyDir
Manikavelu VelayuthamPosted Nov 19, 2010, 2:13 AM
Let me know if you need any information on that.