Romeo 13 Posted November 20, 2018 Report Share Posted November 20, 2018 Hello There Ubotters, Can someone please help me with Run as admin thing, I want my bot to open another app but as admin, if anyone know then please do let me know the way to do it. I already tried shell batch hidden command which is cd c:\program files\path to another app then start app.exe, But this command did not open the app as admin. Thanks in advance Quote Link to post Share on other sites
Brutal 164 Posted November 20, 2018 Report Share Posted November 20, 2018 do you have pash's plugin that contains the 'run as admin' command?... also, understand that when you achieve this, when the other exefires/opens, it is going to prompt the user to allow admin permissions. Quote Link to post Share on other sites
Romeo 13 Posted November 20, 2018 Author Report Share Posted November 20, 2018 Hello Brutal, Which Plugin ? what is the name of plugin ? Quote Link to post Share on other sites
Brutal 164 Posted November 20, 2018 Report Share Posted November 20, 2018 http://network.ubotstudio.com/forum/index.php/topic/16097-sell-plugin-advanced-ubot-1/ Quote Link to post Share on other sites
Romeo 13 Posted November 20, 2018 Author Report Share Posted November 20, 2018 got it working without buying any plugin Thank you Brutal 1 Quote Link to post Share on other sites
Brutal 164 Posted November 21, 2018 Report Share Posted November 21, 2018 glad you got it going your way man Quote Link to post Share on other sites
kill3rbko 12 Posted November 21, 2018 Report Share Posted November 21, 2018 got it working without buying any plugin Thank you Brutal It could be usefull for others if you share it ? Quote Link to post Share on other sites
Romeo 13 Posted November 21, 2018 Author Report Share Posted November 21, 2018 Hello Kill3rbko,To run any exe with admin rights you have to create .bat file with the below code and then you can simply use shell batch hidden command to trigger your bat file with the code:cd C:\your path to bat file (Your bat File Must Be In C Directory)start yourbat.bat create bat file with below code:@echo offif not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)cd C:\your path to file (Your File Must Be In C Directory)start yourfile.exe NOTE: IT WILL GOING TO PROMPT USER TO RUN AS ADMIN 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.