[Solved] Best method for UAC prompt without Vbs
Hello again, was wondering which is the very best method to prompt for admin. Is it also possible to get admin without having to integrate or embed a hybrid js or vbs script outside batch?
"Very best" is subjective. What are your needs? What is your exact goal? Please describe your task in as much detail as possible, including why you can't (or won't) use VBS for this, even though it's widely considered to be best practice.
net session 2> nul >nul
if %errorlevel% neq 0 goto elevate
CD /d %~dp0
echo Here put all the code to be runned as administrator
Found that on Stack Overflow: https://stackoverflow.com/a/37669661/12613647 .
Contact us in Discord: https://discord.gg/b9VFF47
omg thanks Guys!!