Windows Task Scheduler

Creating a Windows Scheduler to Run Programs Automatically

With the help of the Task Scheduler, you can create all kinds of automated tasks or programs to be run by Windows. For example, you can schedule some apps to run at specific time intervals or display a message on your desktop when something happens. You can also run a script or batch file that you created at a specific time interval, at windows start up, or other conditions. Unfortunately, not many people know about this tool, as Windows does not advertise it as much as it deserves. To help you get started working with it, I created this guide on how to use the basic task wizard offered by the Task Scheduler. This application is already built in every windows version, so you don’t have to worry about finding the installer of the app. It’s already in your computer. Here is how it work :

Opening Windows Task Scheduler

To open Windows Task Scheduler application, simply click on Windows logo button on your keyboard and type ‘Task Scheduler’. Click on the Task Scheduler app to open it.

How to open Windows Task Scheduler


Creating a Windows Task Scheduler to Run Programs Automatically

  1. Start the “Create Task” wizard
    Windows Task Scheduler Create Task

  2. On General Tab, name your first scheduler.
    Windows Scheduler General Tab

    • To make the scheduler run only when user is logged on, choose ‘Run only when user is logged on’. Please note that by selecting this option, whenever the user logged off windows, the scheduler will not run even if scheduled in future time.
    • To make the scheduler run no matter the user is logged on or not, choose ‘Run whether user is logged on or not’. Windows will always run the task on schedule.

  3. Go to Triggers Tab, click New.
    Windows Task Scheduler Triggers Tab

  4. Configure your task to run on scheduled time. Select ‘On a schedule’ at the top of the window.
    Windows Task Scheduler Set Triggers

    • You can choose whether the scheduler will run one time only, daily, weekly, or monthly. After selecting this option, you need to select the start time on the right.
    • On Advanced settings section, you can configure :
      • Delay time, this allows the scheduler to run after specific time of the delay after the scheduled start time.
      • Repeat task, this allows the scheduler to repeat every day, hour, minute, or every few seconds. You can set this to repeat for indefinite time.
      • Stop task if runs longer than time specified.
      • Expiry time.

  5. Now it’s time to tell Windows Task Scheduler what to do. Open ‘Actions’ tab, then click ‘New’ button.
    Task Scheduler Action Tab 1

  6. Choose ‘Start a program’, click on ‘Browse’. You may choose any files to run automatically. In this example, I want to run a php file in my htdocs folder, called index.php. So I typed :
    • Program/ script :
      D:\xampp\php\php.exe
    • Add arguments :
      -f D:\xampp\htdocs\longpolling\index.php

      Task Scheduler Action Tab
      Remember that this is just an example. Basically you can run any files, like a batch file, a program that you created, or any third party applications in your computer.

  7. After specifying the application to run automatically, basically we are done. To test the scheduler, you can set the trigger to run a few minutes forward.
    To check the created scheduler, click Task Scheduler Library on the left sidebar, then find the scheduler name on the middle panel.
    Windows Task Scheduler Library
    You can run the scheduler manually by doing right click on the scheduler name, then click run. But you need to understand that this action will only run the task once, and will not repeat as told in the triggers option. To make the scheduler run continuously based on triggers option, you need to set the trigger start time on step 4 to a future time, for example a minute forward.

So that’s it about how to create a Windows Task Scheduler. There are a lot of things we can do with this feature. One of them is to create a long polling Telegram bot. In long polling, you need to continuously check to telegram server whether there is someone sending a message to the bot or not. For detailed explanation about how to create a Telegram bot using long polling method, you can check this post : Creating Telegram Bot using PHP : Long Polling.

5,074 comments

  1. 원엑스벳

    Everyone loves it when people get together and share views.

    Great blog, keep it up!

  2. cheerleader deepthroat

    It’s in fact very complex in this busy life to listen news on Television, thus I only use internet for that reason, and
    take the most up-to-date information.

  3. ワイルド ジャングル カジノ 口コミ

    Nice blog here! Additionally your web site rather a lot up very fast!
    What web host are you using? Can I am getting your affiliate link for your host?
    I want my web site loaded up as fast as yours lol

  4. 벳365 배당보는법

    Hey! Do you use Twitter? I’d like to follow you if that would be ok.
    I’m absolutely enjoying your blog and look forward to new posts.

  5. python decorator

    Pretty! This was an extremely wonderful article.
    Thanks for supplying this info.

  6. 코인카지노

    Hey There. I found your blog using msn. This is
    a really well written article. I will make sure to
    bookmark it and return to learn more of your useful info.
    Thanks for the post. I’ll certainly return.

  7. Titanium Trim

    Hey there, I think your site might be having browser compatibility issues.
    When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up!
    Other then that, great blog!

  8. 샌즈카지노

    Marvelous, what a webpage it is! This web site presents useful
    information to us, keep it up.

  9. 우리카지노

    This is really fascinating, You are an excessively skilled blogger.
    I have joined your rss feed and stay up for in quest of more of
    your wonderful post. Additionally, I’ve shared your site in my social networks

  10. titanium armor

    Good day very cool website!! Man .. Excellent
    .. Superb .. I will bookmark your web site and take the feeds also?

    I am glad to search out numerous useful information right here within the put up, we need develop more techniques on this regard, thanks for sharing.
    . . . . .

  11. sports betting

    Very nice article, exactly what I wanted to find.

  12. ルーレット 賭け方

    Greetings I am so glad I found your weblog, I really found you by
    mistake, while I was browsing on Bing for something else, Nonetheless I am here now and
    would just like to say kudos for a incredible post and a all round thrilling blog (I
    also love the theme/design), I don’t have time to go through it all at the minute but I have book-marked it and also included your RSS feeds,
    so when I have time I will be back to read a great deal more, Please
    do keep up the fantastic job.

  13. レオベガス ログイン

    Greetings! Quick question that’s totally off topic. Do you know how to make your site mobile friendly?
    My website looks weird when browsing from my apple iphone.
    I’m trying to find a template or plugin that might be able to correct this problem.
    If you have any recommendations, please share.
    Appreciate it!

  14. what is poker

    Every weekend i used to visit this site, for the reason that i
    wish for enjoyment, as this this site conations actually good funny information too.

  15. ラッキーニッキー

    Your way of telling everything in this post is genuinely pleasant, every one be able
    to effortlessly be aware of it, Thanks a lot.

  16. empire777 ดีไหม

    I constantly emailed this weblog post page to all my contacts, since if
    like to read it after that my contacts will too.

  17. Titanium watch

    I visit daily a few websites and information sites to read articles or reviews, however this blog offers quality based writing.

  18. online casino games

    Hi there, after reading this amazing post i am also happy to share my know-how here with mates.

  19. Bwin

    Hey there! I just wanted to ask if you ever have any problems with hackers?
    My last blog (wordpress) was hacked and I ended
    up losing months of hard work due to no data backup.
    Do you have any solutions to prevent hackers?

  20. casino secret

    We are a group of volunteers and starting a new scheme in our community.

    Your site offered us with valuable information to work on. You’ve done a formidable
    job and our entire community will be grateful to you.

  21. chopsticks johnston

    You actually make it seem so easy with your presentation but I find this topic to be actually
    something which I think I would never understand. It seems too complex and very broad for me.
    I’m looking forward for your next post, I’ll try to get the hang
    of it!

  22. カジノ

    Have you ever considered about including a little
    bit more than just your articles? I mean, what you say
    is important and everything. But think of if you added some great graphics
    or videos to give your posts more, “pop”! Your content is excellent but with images and video
    clips, this site could definitely be one of the greatest in its niche.
    Great blog!

  23. blackjack movie

    I’m really enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much
    more pleasant for me to come here and visit more often. Did you hire out
    a developer to create your theme? Exceptional work!

  24. 우리카지노

    This is my first time pay a quick visit at here and i am actually pleassant
    to read all at alone place.

  25. server status

    Yesterday, while I was at work, my cousin stole my iPad and tested to see if
    it can survive a 30 foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she
    has 83 views. I know this is totally off topic but I had to share it with someone!

  26. poker vn zingplay

    Hi there, everything is going perfectly here and ofcourse every one is sharing data, that’s really good, keep up writing.

  27. online casino games

    This design is steller! You certainly know how to keep a reader entertained.

    Between your wit and your videos, I was almost moved to start my
    own blog (well, almost…HaHa!) Excellent job. I really loved what you had to say, and more than that, how you
    presented it. Too cool!

  28. havenly interior design

    you’re really a excellent webmaster. The web site loading pace is
    incredible. It kind of feels that you’re doing any unique trick.
    Moreover, The contents are masterpiece. you’ve done a magnificent task in this matter!

Leave a Reply

Your email address will not be published. Required fields are marked *