One of the techniques for preventing UAC from requiring a user "Yes/No" response is to create a scheduled task for an app, then start the app using a shortcut to that scheduled task - as discussed here.
I've tried the approach and manually double-clicking on the shortcut works just fine (no UAC popup). But I'd like to open the EXE from within my PowerBASIC app by calling the shortcut to the Task Scheduler scheduled task.
I've used code that dereferences a *.lnk file so that I can SHELL to the original EXE, but that code doesn't apply to a scheduled task shortcut because the shortcut target is a Task Scheduler file, not an EXE. Plus, avoidance of the UAC requires going through Task Scheduler.
Has anyone been able to start an app from a PowerBASIC program by using a shortcut to a Task Scheduler task for that app?
I've tried the approach and manually double-clicking on the shortcut works just fine (no UAC popup). But I'd like to open the EXE from within my PowerBASIC app by calling the shortcut to the Task Scheduler scheduled task.
I've used code that dereferences a *.lnk file so that I can SHELL to the original EXE, but that code doesn't apply to a scheduled task shortcut because the shortcut target is a Task Scheduler file, not an EXE. Plus, avoidance of the UAC requires going through Task Scheduler.
Has anyone been able to start an app from a PowerBASIC program by using a shortcut to a Task Scheduler task for that app?
Comment