Hey,

You are missing a using statement at the top of your code file:

Code:
using System.Diagnostics;
Either that, or change it to this:

Code:
System.Diagnostics.Process myprocess = new System.Diagnostics.Process();
I understand what the command is doing, but earlier you said that all you want to do is read the output into the string variable, and then delete the file. This is certainly what you were doing in post #4. Using the approach that you are now, the output is being read directly into the string variable, so I don't see why you still need the file. But it's up to you. You may still have the problem with deleting the file.

Gary