How to close/exit some program using Task Scheduler in Windows 7?


  1. skt
    Posts : 25
    Windows 7 Ultimate x64
       #1

    How to close/exit some program using Task Scheduler in Windows 7?


    I want to turn on and off some backup programs to be automatically turned on and off at a set time instead of running in the background all the time and consuming memory.

    I know how to start any program using Windows Task Scheduler, but unable to find how to turn off the same program using it.

    Is there any way of doing it?

    I would really appreciate any help.

    Thank you!
      My Computer


  2. Posts : 2,171
    Windows 7 Ultimate x64
       #2

    You can use the taskkill command...
      My Computer


  3. skt
    Posts : 25
    Windows 7 Ultimate x64
    Thread Starter
       #3

    Just found this:
    A batch file to kill a process

    or do you mean something else, without using the batch file?
      My Computer


  4. Posts : 1,036
    Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
       #4

    You can write/use a batch script to run that backup programs of yours and terminate after completion. You can then schedule this batch script to run at a time of your choice via task scheduler.
      My Computer


  5. Posts : 2,171
    Windows 7 Ultimate x64
       #5

    Open a command prompt and type taskkill /? and press enter to see how to use the options for the command. You can either use it in a batch file that's called from the task, or use the command itself in the task. Then you need to figure out how you want to trigger the task.
      My Computer


  6. skt
    Posts : 25
    Windows 7 Ultimate x64
    Thread Starter
       #6

    Thanks for the replies!
    Got it working! :)
      My Computer


  7. Posts : 2,171
    Windows 7 Ultimate x64
       #7

    Glad to hear it! Can you post again to allow others to know how you got it accomplished?
      My Computer


  8. Posts : 1,036
    Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
       #8

    sibbil said:
    Glad to hear it! Can you post again to allow others to know how you got it accomplished?
    Please do so. Would help others.
      My Computer


  9. skt
    Posts : 25
    Windows 7 Ultimate x64
    Thread Starter
       #9

    Here you go !

    Hope it's helpful.

      My Computer


  10. Posts : 2,171
    Windows 7 Ultimate x64
       #10

    Thanks for posting your fix skt!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:48.
Find Us