Author Topic: How run a Winbatch program in "elevated" mode?  (Read 96 times)

pguild

  • Jr. Member
  • **
  • Posts: 51
  • The dog is always right!
    • MasteryLearning
How run a Winbatch program in "elevated" mode?
« on: November 18, 2022, 03:25:52 pm »
I think this means running as an admin.  When I run the wallpaper code from Winbatch studio it gives me a black screen. How would I run it with admin rights or in some elevated mode? 8)

Thanks.

ChuckC

  • Sr. Member
  • ****
  • Posts: 405
Re: How run a Winbatch program in "elevated" mode?
« Reply #1 on: November 18, 2022, 06:07:06 pm »
Right-click the shortcut in the start menu or on task bar, or the actual program file [via File Explorer], and then click on "Run as Administrator".  Do this for WinBatch Studio, or for your compiled script.  Refer to the WinBatch documentation about how to set the correct "manifest" so that the compiled script will automatically prompt for elevation.


td

  • Tech Support
  • *****
  • Posts: 4184
    • WinBatch
Re: How run a Winbatch program in "elevated" mode?
« Reply #2 on: November 20, 2022, 08:34:08 am »
If you want to run an uncompiled script as an elevated admin, change the file extension from ".wbt" to ".wbt_at" or ".wbt_af". As Chuck mentioned set the manifest so that a compiled version of your script executes as an elevated process. For more information you can check out the following:

https://docs.winbatch.com/mergedProjects/WinBatch/Manifests.htm
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade