Reputation: 15981
I am running a Windows application from the command line (PowerShell/Command Prompt):
.\myapp.exe <some arguments>
When the app starts, it displays a dialog similar to this:
I want to be able to respond Yes to this dialog prompt from the command line, i.e. without having to manually click on the Yes button. Is there anything I can add to my command line, e.g. pipe input or PowerShell/Command Prompt options, to automatically respond to the dialog and close it?
Upvotes: -1
Views: 80
Reputation: 47
The UAC will come always, try to run this in admin, right click run as admin or change the app executable or the apps entire folder and give it all elevated administrator permissions. Then UAC prompt will be skipped, or if you as I can see are already using Auto Hotkey, there are many scripts available for this, where it automatically clicks Yes (Button 1) when it detected the UAC admin prompt, you can activate it keeps running on loop and that's good for you, or if you can, disable UAC, [DON'T, this is last resort.]
Upvotes: 0