Is it possible to use task scheduler to run a batch file upon the opening of any app?

Ethan Robinson 1 Reputation point
2022-08-05T06:14:13.593+00:00

For example i want to make it so when ever i open any app it opens a batch file that i have coded to open a google forms that randomised with study questions.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,272 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2022-08-08T08:58:56.893+00:00

    Hi there,

    Task Scheduler lets you choose from different triggers, including a specific date, during startup, or when a user logs in to the computer.

    You can configure the script using the Task Scheduler app to run it on schedule. Or you can save the batch files in the "Startup" folder to let the system run them as soon as you sign into the account. If you want to run a script on-demand, you can use File Explorer or Command Prompt.

    Go the task properties --> Action tab --> Edit --> Fill up as below:

    Action: Start a program
    Program/script: path to your batch script
    Add arguments (optional): <if necessary - depending on your script>
    Start in (optional): Put the full path to your batch script location

    ---------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments