2
Answers

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

shilpa bharkhada

shilpa bharkhada

17y
8.4k
1

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)