Execute external program with administrator rights

337 views Asked by At

I am trying to open an extenal program that requires me to open this program as administrator.

I am using these two lines to open external program, but the program is executed without administrator privileges.

How i can execute it with the correct rights?

Runtime run  = Runtime.getRuntime(); 
Process proc = run.exec(locationOfProgram); 
0

There are 0 answers