In my Windows Selenium Java project I am trying to run a AutoHotKey exe, but the execution of the exe needs to be done as admin. How would I run the following as admin?
Runtime.getRuntime().exec("C:\\Scripts\\selectFile-emailmsg.exe");
Thanks.
In my Windows Selenium Java project I am trying to run a AutoHotKey exe, but the execution of the exe needs to be done as admin. How would I run the following as admin?
Runtime.getRuntime().exec("C:\\Scripts\\selectFile-emailmsg.exe");
Thanks.
Runtime.getRuntime().exec("cmd runas /user:administrator /savecred /c start \"\" \"C:\\Scripts\\selectFile-open1jpg.exe\"");