Elevated Program Shortcut without UAC Prompt - Create

Page 51 of 51 FirstFirst ... 41495051

  1. Posts : 5
    Windows 10 64-bit Version 1909
       #500

    I wrote a reply a few minutes ago that appears to have disappeared. I guess I'll try retyping it.

    I found this tutorial incredibly helpful but can't seem to get it to work for one of my tasks. I got it to work with CCleaner, but the task I'm struggling with is running two .exes simultaneously. I checked and double-checked and everything looks good, but when I hit run or when I use the desktop shortcut, it doesn't run either program.

    The two actions link to these locations:
    /c/start "ESO AddOn Clients" "C:\Documents\Elder Scrolls Online\live\AddOns\TamrielTradeCentre\Client\Client.exe"
    /c/start "ESO AddOn Clients" "C:\Users\Veronica\AppData\Local\Minion\Minion.exe"

    The apps are standalone exes for the game The Elder Scrolls Online. Currently, I have to select each exe individually and hit yes on the UAC prompt for each one. It's really annoying, so I was really hoping there was a way to just have one button run both, without the prompt. I edited the shortcut to bypass the UAC and to run in administrator mode. I'm not really sure how I messed up or if it just can't work with two exes simultaneously. If that's the case, what are my options?

    Thanks in advance!
      My Computer


  2. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #501

    Hello @verajart, and welcome to Seven Forums.

    I've found this doesn't usually work well for games due to the multiple files being launched.
      My Computer


  3. Posts : 5
    Windows 10 64-bit Version 1909
       #502

    Brink said:
    Hello @verajart, and welcome to Seven Forums.

    I've found this doesn't usually work well for games due to the multiple files being launched.
    Hi, Brink. Thanks for the super speedy reply!

    The two programs I'm trying to launch aren't actually games, they're standalone desktop applications that provide features that enhance my game. One is an addon management app and the other polls my auction sales and syncs my data with the website. Neither are games themselves.

    Thanks!
      My Computer


  4. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #503

    verajart said:
    Hi, Brink. Thanks for the super speedy reply!

    The two programs I'm trying to launch aren't actually games, they're standalone desktop applications that provide features that enhance my game. One is an addon management app and the other polls my auction sales and syncs my data with the website. Neither are games themselves.

    Thanks!
    You might test creating separate elevated shortcuts for each .exe file.

    Afterwards, you could run the elevated shortcuts together from say a BAT file.
      My Computer


  5. Posts : 5
    Windows 10 64-bit Version 1909
       #504

    Brink said:
    You might test creating separate elevated shortcuts for each .exe file.

    Afterwards, you could run the elevated shortcuts together from say a BAT file.
    Awesome, thank you.
    They work individually as elevated shortcuts. How do I run them from a BAT file? I'm not familiar with that.

    Thanks again!
      My Computer


  6. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #505

    You're most welcome.

    A .bat file basically just runs commands.

    You could have two lines in the .bat file with each line a command to run a shortcut.

    The command line below is an example of what to use per line. Substitute the part in red with the actual full path of an elevated shortcut.

    Code:
    start "<full path of shortcut>"
      My Computer


  7. Posts : 5
    Windows 10 64-bit Version 1909
       #506

    For posterity, I'm going to share what I did (basically) to create a .bat file.
    I opened a new doc in Notepad.
    I typed:
    cd c:\ESO
    start Minion.lnk
    start TTC.lnk
    Then I saved that as a .bat file. That's not a default 'save as' option, so you have to choose 'All Files' and then type .bat, if memory serves.
    Unfortunately memory does not serve well for all the steps to this solution.
    I know that this runs through CMD. I made a desktop shortcut for it, then put that in my start menu to replace the three other icons, and now this runs all three programs simultaneously. It works great! If I can remember what else I did to create this (with my hubby's help) I'll update this post again with that.
    Thanks again!
      My Computer


  8. Posts : 125
    Win 7 Pro 32-bit
       #507

    Anybody know why my attempt at doing this trick has resulted in a shortcut that only intermittently succeeds in opening my program? It flips from working to not working during the same Windows session. No error messages, the program just doesn't open.
      My Computer


  9. Posts : 96
    Windows 7 Professional 64-bit
       #508

    .Bat invoked by Task Scheduler doesn't take focus


    I don't know if this has been addressed. I mean, this thread goes back only to 2009 & spans 50 pages (when you're not logged on -- only 13 when you are -- that's weird). I did plow through about half the thread before I couldn't take any more. So here's the deal . . .

    I wrote a command script (.Bat file) maybe a few years ago that does a couple of things that require elevation. For these past few years I have popped up the context menu on the file in the file manager & selected Run as administrator. Then it gives me the UAC prompt. But I got fed up with that, especially since about half the time I forget that I need to elevate the thing before it will work correctly.

    A number of years ago, I applied this tutorial to create a task that executes Task Manager elevated so it comes up with the Show processes from all users already checked. Now I want to take the same approach with my .Bat script.

    So I actually have 2 levels of script. The script I double click on contains 1 line: schtasks /run etc. as prescribed in this tutorial. The task defined in Task Scheduler then invokes the script that I really want to run. The script is sort of interactive. Actually, all it does is Pause every so often so I can read the results of the various commands it is invoking along the way. My approach has eliminated the need to explicitly do the Run as administrator thing, & it avoids the UAC prompt. All good.

    Here's what's annoying. The script invoked from the Task Scheduler does not take focus. The command window opens up on top of everything else, which is what I want. But the command window does NOT have focus. I have to do a task switch (Alt+Tab or mouse click) to get into the thing. After that it works as intended.

    Any idea how I can make the stupid command window take focus?
      My Computer


 
Page 51 of 51 FirstFirst ... 41495051

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:07.
Find Us