58 Comments to How to create advanced tasks with the Task Scheduler

  1. Will says:

    Hi There,

    Thanks for the article; I would like three programs to run automatically (and in a particular order) when a trigger is activated.

    When the task is triggered, the first program on the list runs (as it should), but then nothing else happens. When I close the program that opened, the second program opens, and then nothing happens – the third program still has not run at this stage. Then, when I close the second program, the third opens. After closing the third program, nothing happens – the task has been completed… not exactly what I had in mind…

    Is there a way to make all three programs open instantly, one after the other – all in the space of one second-or-so?

    Thanks,

    Will

    • manuel di luzio says:

      Yes there is. You must make a .bat file (a simple .txt file saved as .bat in the name of the file, save as “all files” option) containing the instructions to open the programs such as this:

      start C:etcetc.program1.exe
      start C:etcetc.program1.exe
      start C:etcetc.program1.exe

      Then you schedule this file instead of the programs.

      However, this will open all the 3 programs in the same moment, so you should insert between each row a command to delay the start of the next command (google it).

      Bye,

      manuel

  2. Tez says:

    Hi Manuel.
    I have set a task to run in my scheduler: I want it to open a text document each night to remind me to do something. I have experimented extensively with this and have had no joy – settings are as follows:
    General: Name: Reminder
    Location:
    Author: Tez (

    • Paul says:

      Change it to run with a user instead of “Set to Run whether user is logged on or not”. If you are telling to run with any user, it doesn’t know which user to display the window.

  3. Shan leatherman says:

    Great job on the documentation. I’m embarrassed to even ask this because the task scheduler seems so straight forward but I’m struggling to get an access program that has been running under os 2003 scheduler to run in Windows 7 task scheduler. The area I’m wondering about is the action tab. I browse to the Access program which resides on a different server to run a daily report. Each time I attempt to run I receive invalid directory despite my navigating directly to it. Any suggestions on anything else I could try? Thanks in advance for your help
    Shan

    • Ciprian Adrian Rusen says:

      Why don’t you try to create the task to run that program directly on the computer on which it resides?
      This will eliminate complications with running a remote program, on another computer on the network.

      • Shan Leatherman says:

        While your suggestion has merit, we currently have 18 schedule jobs that run various updates or reports daily in our 2003 scheduler. We really like the convenience of checking this separate computer set up specifically to run jobs and as a backup computer. We can see at a glance if there are any problems. If we moved all our scheduled jobs to the SERVER that houses the code we wouldn’t be as aware if problems arose and things weren’t running with out physically remoting into the server each day. We have logic to send messages if problems but sometimes you aren’t aware if other problems occur. Today we can quickly glance to see if something is hung or there was an issue. I tried copying the access program to the Windows 7 computer I’m trying to set up Scheduled tasks on to see if that would resolve it and got the error > %1 is not a valid win32 application. While the task scheduler seems to runs .exe and .bat files fine I’m wondering if its unable to run .accb Win 7 Access programs? Just doesn’t seem like it should be this difficult to set up.
        Shan

        • Ciprian Adrian Rusen says:

          Do you have Access installed on the Windows 7 computer where you are trying to run the program?

  4. Shan Leatherman says:

    Yes. Since we’re moving to Office 10, its the computer we are using to convert all the 2003 Access programs to 2010 Access.

  5. Robert Oetzel says:

    One job triggered by four events (logical conjunction)
    Hi Florina,
    thank you for this great article.
    My case is: I have four jobs running parallel, all startet by 19:30,
    and there is a fifth job, which should start after the other four have finished.

    Now, I created events at the end of the four jobs, but I cannot
    set up the fifth, to start on the end of ALL events (logical AND).
    It starts on ANY event (logical OR).

    Is there a chance ?
    Kind Regards
    Robert

  6. Wendy says:

    Florian,
    I would suggest some further English language study. You need work on articles and past tense.

    • Ciprian Adrian Rusen says:

      Wendy,

      1. The name is Florina, not Florian. Shey’s lady, not a guy. 🙂
      2. I have read the article and made many improvements to it. The quality should be improved now.
      3. Thanks for the feedback.

      Ciprian

  7. Ramesh says:

    Hi,
    I have one task scheduler and i am getting the error like “Task Schedular are unable to process some application, error code is 267014”
    Can any one help me to solve this problem.

  8. Ramesh Sharma says:

    What is the functionality of the option “Stop all running tasks at end of repetition duration” under the “Advanced setting” under “Trigger” tab.

  9. Chaitanya K says:

    I am working on Network i want to apply the EXE for few Systems (Required Systems) to Run the EXE.

  10. Pete Brake says:

    New to the scheduler. Trying to automate cleandisk. How do I program responding to Cleandisk prompt to delete files found?
    Thanks.

  11. Atul Abrol says:

    Hello –
    Thanks a lot for your article .

    Is it possible to use scheduler to –
    Wake up my computer from sleep mode
    Open my account on a website
    Click a tab that says my ‘Calendar is upto date ‘

    • Ciprian Adrian Rusen says:

      You need to make a script that opens your account on a website and clicks whatever you want. Then, make a task that runs the script.

  12. Mike says:

    Hello,

    I’m trying to figure out to make task scheduler send an email when a specific task or tasks have not run in 24 hours and I’ve had no luck with it. Is this something can be done?

  13. Steven Hernandez says:

    Hello,

    I want to use the Task Scheduler to open an Excel file. The Excel file contains a macro that automatically runs when the file is opened. At the end of the routine the macro saves the file and closes the Excel application using the following commands:
    >ThisWorkbook.Save
    >Application.Quit

    When I open this excel file in a normal way, such as double-clicking on the file, the macro runs successfully and Excel closes. However, when I use the Task Scheduler to open the excel file, the Excel Application does not close when the routine is finished.

    Note that I’ve tried using the Task Scheduler to open this Excel file on other computers that are running the 64 bit version of Windows 7 and it works flawlessly. I’m only having this issue on a computer that is running the 32 bit version. Any ideas?

  14. Rick says:

    Hello, thanks for this site.
    Can I schedule an external program call….ie. the action to be
    http://www.mysite.com/directory/program.php

    Many thanks,
    Rick

  15. Tufail says:

    Thanks for such a great article…
    I need to run a bath script when the user login for first time only one time for the first login only. Right now script runs every time the user login and logof. how to stop the script when the user login for 2nd time.
    How to accomplish this. i am really in trouble. plz help.

  16. Stoex says:

    I’m using Task Scheduler to open a spreadsheet in MS Works. I know how to get this far and everything works.
    I now want Task Scheduler to also print the spreadsheet, but cannot find the correct command/argument to include with the above opening. I have searched the internet & got countless dead end leads.

  17. Joe Markakis says:

    Hello, thanks a lot for providing this article. I’d like to ask…is it possible to schedule a task that will run a batch file whenever a specific program (.exe) is found to be running? Thanks again!

    • Ciprian Adrian Rusen says:

      Great question! We don’t know the answer. We will try to investigate and, if we find something, we will come back with a tutorial on this subject.

  18. Joe Markakis says:

    Thanks for your prompt reply Ciprian Adrian Rusen!

  19. Paul B says:

    Hi Ciprian, thanks for the article – very helpful.

    Can I use a variable instead of a username to allow another user to import a task without editing it? At the moment once they import the task it asks for the task author’s credentials.

  20. Paul B says:

    Hey, that was quick! thank you for the response.

  21. Tony says:

    How do I change the password entered when the task schedule was first set up to a new one? (my organization requires passwords to be changed every 90 days)…the old one no longer works for my task and I need to change it to my new one. How do I do this?

    Tia

  22. Dale Corning says:

    I have entered a program into the schedule to be run every day at 08:15. The program starts with reading an .ini file from it’s default directory. It can not find this file. The scheduler allows me to browse over to the file to execute it but the default directory is not changed. Is there a way of either changing the default directory or a defined place to store the .ini?

  23. jraju says:

    Hi, what about arguments and parameters in the action schedule, that is when browsing target exe for a program. Would you elaborate on this aspect. Is it meant to trigger the inside exe, in the main exe, for ex. if a program has option 3 for user to select, would it be something to do with this?

  24. lisa says:

    Hi,
    I am trying to use task scheduler to play an audio clip (1min) once at a given time daily. I just wanted to check that this would be possible as I managed to set it up so that the clip was played at the requested time however I could not stop the clip from being played on repeat. If this is possible I would very much appreciate any advice on how I can get the task scheduler to achieve this.
    Thank you.

  25. sumant says:

    I want to start scheduled task after change in any file event happen. E.g. if i open any excel file made any change & save. I want start after close this file.

  26. ngd says:

    On disconnect from user session with “only remote user” doesn’t work correctly on Windows 8.1. It works great on windows 7.

    The event is fired on both local and remote disconnects

  27. JP TARDIF says:

    Hello Ciprian Adrian Rusen,

    Is there a possibility to create a trigger that tells my program to start when a file is saved at a precise location? Because my program is dependent of another program run before by someone else.

    Thanks

    • Ciprian Adrian Rusen says:

      That requires some scripts, it is too advanced for a mere task scheduler.

  28. john says:

    When i try to save a new task it asks for account name and password.
    I give the only account’s name from the control panel accounts page (which happens to be my email address) and is an administrator, and it says “specified account name not valid”

  29. Manish says:

    Hi,
    I want that an excel file show as popup when I unlocks my computer, because everytime i unlock the computer, i have to update the excel file without delay.

    Please help

  30. Gayathri says:

    I am trying to schedule a task to Google Analytic s report (url) download to a local folder. I have google analytics userID and passward to configure and download report. How can I do that. Can you please help with the steps/code for this please. please. please…

  31. Deepak says:

    thanks for sharing. i have question. what is maximium length of argument that can be passed to a program ?

  32. Jones Acton III says:

    I suggest an edit to the “The available Advanced settings” section that points out a user is not actually limited to the defaults (30 seconds, 1 minute, etc.) of the drop-down dialog’s list when setting a time delay for a given task’s trigger(s). When the “Delay task for:” box is checked, one may highlight the time selection displayed and change it to the desired number of minutes.

  33. Enrique says:

    Hi

    I have a question is possible do the next if i have a program and for some reason I close this for error show me a pop up ask me If i really want close the program?

  34. erfan says:

    Hi
    I want to run a batch file that includes a ‘myfile.exe’ and ‘text input file’ with the task scheduler in win7. But When the task scheduler execute , Run has been stopped and I face the following error in cmd:
    ‘myfile.exe’ is not recognized an internal or external command, operable program.
    please help me
    regard

  35. Michael says:

    Is there anyway to close a window once the task has been run without creating a batch file. I created a task that runs and at the end of the task I would like the window that opens to close automatically. Is there an augment that I can put in my scheduled task so that it does this. Please help

  36. SUE says:

    Hi
    i have task scheduler running on my computer running for hours sometimes and it really affects my CPU (i think this is the cause) i have never recreated these tasks (unknownly if i have). can i delete these tasks and start again as and when i realise i need certain ones, i dont know why they are running to be honest
    secretary sue

  37. Bob Pfeiffer says:

    Is there a way to run a task when a certain log file contains some keywords (like ‘ERROR’)?

  38. Guest says:

    There is a way around the deprecated parts.

    For error messages: http://www.rjlsoftware.com/software/utility/mm_deluxe/

    For the email thing, just use some kind of script that runs when the task is activated.

  39. qafari says:

    hello.
    how do you run bath file?

  40. LectorOcasional76 says:

    Excelent explanation about Tasks. I’m wondering how the arguments must be declared in the specified field; For example, I created a task which starts a script “open cmd.exe” and I want use the following argument: echo “Hello World”, but, when the task is executed, it only opens the cmd.exe, but no arguments has shown on the screen.
    What I’m doing wrong?

  41. A says:

    I want play a song in wma, but I want the wma window not shown, or at least to close when done. But wma window opens and stays there.

  42. Shan says:

    I have a number of schedules tasks which run every day. 2 of these jobs are import jobs and I want to pause/stop all other jobs from running whenever these 2 jobs have failed/unsuccessful as these jobs require data from the import.

    Even if these 2 jobs fail, I receive an email to say these have been unsuccessful. However, the other tasks continue to run and I receive e-mails to say these have been successful even though the information these reports contain are wrong.

    Is there any way to stop/pause tasks if they are dependent on another task?

  43. Jesslyn says:

    Advanced Tasks tutorial that doesn’t explain all the fields. Not good.

  44. GB says:

    If a task runs every day from 11:19 every hour for 1 day what does that actually mean?
    Does it mean that the tasks starts at 11:19 each day until the end of the day, or does the 1 day means 24 hours, any therefore would complete at 11:19 to following day, but start again due to the fact it repeats every day?

  45. Doug says:

    Is it possible to limit the number of instances that will start in parallel?

  46. Robert Adams says:

    Can I set up an action to “press the enter key”, then press it again in 0.75 seconds?

Leave a comment