VB.NET - regarding command prompt - Asked By sadhish babu muthusamy on 08-Aug-12 11:21 AM

i want create batch file which should open command prompt as administrator rights

the command prompt should run as administrator mode..........................................................


thanks in advance...


Peter Bromberg replied to sadhish babu muthusamy on 08-Aug-12 11:40 AM
ProcessStartInfo startInfo = new ProcessStartInfo(); 
startInfo.UseShellExecute = true;            
startInfo.Verb = "runas";
startInfo.Arguments = "/env /user:" + "Administrator" + " cmd";
Process.Start(startInfo);
sadhish babu muthusamy replied to Peter Bromberg on 09-Aug-12 06:44 AM
HI Peter,

Thanks alot......................................