Running an external cmd.exe in administrator mode....

Sep 10 2007 4:40 AM

Hi,

I need to find a way to run an external cmd.exe in administrator mode (using the process class). 
Right now i am doing as follow...

Process p = Process.Start("cmd.exe");

this.Visible = false;

p.WaitForExit();

this.Visible = true;

But this is running as a normal user.I want this as a run as administrator.

I want to run this in vista.

Thanks in advnce.

Shilpa


 


Answers (2)