Run BAT as Admin from User Button?
Posted: 02 Nov 2024 01:57
I have lots and lots of toolbars buttons along with graphics that I made and some of the buttons I have set to just bring up a list of Batch files to execute like one for running one of the various Ai Tools that I have install on my system with just
On Left Click:
Which brings up a list with those files listed like this:
Now i like being able to do this as I do so much and sometimes quickly want to access various things. But well besides the main question do people also know how to do that menu thing but be able to maybe change the list to have icons and possibly change the text you want to see for each item like possibly :
etc...
But my main question is there are times where I need to run any given BAT file as Administrator and through that menu method I dont know how to accomplish this, does anyone know how to make "FROM A BUTTON" it execute a file as administrator?
On Left Click:
Code: Select all
C:\!Sd\Comfy\ComfyUi.bat
C:\!Sd\FaceFusion\FaceFusion.bat
C:\!Sd\ForgeUi\ForgeUi.bat
C:\!Sd\roop-unleashed\Roop-Unleashed.bat
C:\!Sd\Rope-Next\Rope-Next.bat
C:\!Sd\Rvc\RVC.batNow i like being able to do this as I do so much and sometimes quickly want to access various things. But well besides the main question do people also know how to do that menu thing but be able to maybe change the list to have icons and possibly change the text you want to see for each item like possibly :
Code: Select all
"ComfyUi" C:\!Sd\Comfy\ComfyUi.bat Icon:comfyui.ico
"FaceFusion" C:\!Sd\FaceFusion\FaceFusion.bat Icon:C:\Users\damie\AppData\Roaming\XYplorer\Icons\facefusion.ico
"ForgeUi" C:\!Sd\ForgeUi\ForgeUi.bat icon: D:\_Damien\Icons\Custom\Labeled\Ai Artwork.ico
"Roop-Unleashed" C:\!Sd\roop-unleashed\Roop-Unleashed.bat Icon:roop-unleashed.icoBut my main question is there are times where I need to run any given BAT file as Administrator and through that menu method I dont know how to accomplish this, does anyone know how to make "FROM A BUTTON" it execute a file as administrator?