Make Task Scheduler run a program after another closes?

Page 1 of 3 123 LastLast

  1. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
       #1

    Make Task Scheduler run a program after another closes?


    Is it possible to get Task Scheduler to run programs after another program is closed?

    What I was thinking is, it would be great to be able to get CCleaner and/or an AV program to run automatically, after shutting down IE8, Firefox or other browser.
    It would be an excellent way to protect a PC from nasties.

    I forgot to clean my cache the other day and my email got hijacked.
      My Computer


  2. NoN
    Posts : 4,166
    Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
       #2

    lehnerus2000 said:
    Is it possible to get Task Scheduler to run programs after another program is closed?

    What I was thinking is, it would be great to be able to get CCleaner and/or an AV program to run automatically, after shutting down IE8, Firefox or other browser.
    It would be an excellent way to protect a PC from nasties.

    I forgot to clean my cache the other day and my email got hijacked.
    You can do first in Control Panel=>Internet Options => Check the box, Delete Browser History on close, and in Parameters Tab, don't retain days of pages saved, set the cache to minimal 50Mb so it will erase itself while browsing.

    When you click "Delete", check all Boxes except the one on top from the favorites Web Sites.

    Again in your Intenet Options, don't authorize the password to be memorized.

    This will help a lot the clean up when you close the browser, it is delayed 30seconds after you finished browsing.

    It might be harder to do a task on demand, than this lite solution...Hope this help!
      My Computer


  3. Posts : 34
    Vista Premium
       #3

    lehnerus2000 said:
    ...I forgot to clean my cache the other day and my email got hijacked.
    you dont have to equate stuff just "being on" your computer with viruses, trojans, etc

    nothing is that volatile

    you have to run/execute before you can become contaminated - by which time, no amount of "cleaning up" will make any diff

    just be aware of programmes you execute/run
      My Computer


  4. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #4

    1) AutoCleaner, (also called CCleaner Runner) monitors web browsers (users can select which browsers to watch), which when closed will automatically launch CCleaner (minimized in system tray) and clean up the browser’s cache, web history, typed URLs, temp files, and more depending on the user’s CCleaner setting.

    AutoCleaner 1.1 | AddaxSoft

    2) Alternatively, you can create a shortcut to “C:\Program Files\CCleaner\ccleaner.exe” /AUTO /SHUTDOWN” and your PC will be cleaned before shutting down.
      My Computer


  5. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
    Thread Starter
       #5

    Thanks guys, for your replies/suggestions.


    Sometimes my descriptions & phrasing are "double plus ungood". :)

    NoN said:
    You can do first in Control Panel=>Internet Options => Check the box, Delete Browser History on close, and in Parameters Tab, don't retain days of pages saved, set the cache to minimal 50Mb so it will erase itself while browsing.

    When you click "Delete", check all Boxes except the one on top from the favorites Web Sites.

    Again in your Intenet Options, don't authorize the password to be memorized.

    This will help a lot the clean up when you close the browser, it is delayed 30seconds after you finished browsing.

    It might be harder to do a task on demand, than this lite solution...Hope this help!
    Hi NoN
    The problem with that solution is, that I often need my history to find things. I use Firefox, but it uses basically the same clean-up method.

    When I start searching for stuff on the Internet, I often discover unrelated items, which might be worth further investigation.
    My usual practice is to open multiple tabs as I am searching.
    Yesterday I had 170 tabs open (I have read comments from people complaining, that they can't open more than a half a dozen tabs before FF becomes unusable - check out my system specs).
    This usually means that I have to finish browsing, before I have investigated all the tabs I've opened.
    I don't always bookmark every tab, so I need my history just in case. I already have too many bookmarks (~10,000).

    Chris K said:
    lehnerus2000 said:
    ...I forgot to clean my cache the other day and my email got hijacked.
    you dont have to equate stuff just "being on" your computer with viruses, trojans, etc

    nothing is that volatile

    you have to run/execute before you can become contaminated - by which time, no amount of "cleaning up" will make any diff

    just be aware of programmes you execute/run
    Hi Chris K
    I have multiple Firefox profiles on my machine (default, anime, pjl, etc).
    I have done this because I have too many bookmarks (~10,000).
    If I use only one profile, finding any particular obscure bookmark is difficult (and Firefox seems to struggle).

    This is what I think happened:
    I used my online email in one FF profile and then I swapped to another one, without cleaning the cache. When I opened my online email in that FF profile, my account got hijacked and sent out a couple of spam emails (porn & Viagra links, I think).
    The "Sent" folder in my account, did not contain these Spam emails.
    Also, one of my cookies for my online email accounts (I have more than one) became "corrupted" and I was unable to access my account.
    In fact my email provider's log in page said, that my user name didn't exist!

    I "CCleaned" my cache when I closed Firefox and ran AVG, ASC and Glary Utilities and they all said nothing was wrong.
    I also let Windows Defender run itself every night, well unless AVG has turned it off.

    Thus my question about automatically running a program, after another has closed (e.g. AV/cleaner program, when a browser is closed).
    It wouldn't have to be for that situation only (it was the easiest example).

    Bill2 said:
    1) AutoCleaner, (also called CCleaner Runner) monitors web browsers (users can select which browsers to watch), which when closed will automatically launch CCleaner (minimized in system tray) and clean up the browser’s cache, web history, typed URLs, temp files, and more depending on the user’s CCleaner setting.

    AutoCleaner 1.1 | AddaxSoft

    2) Alternatively, you can create a shortcut to “C:\Program Files\CCleaner\ccleaner.exe” /AUTO /SHUTDOWN” and your PC will be cleaned before shutting down.
    Hi Bill2
    Thanks for that link. I will check it out.
    I thought that the /SHUTDOWN command, made the computer shut down after CCleaner had run.
      My Computer


  6. NoN
    Posts : 4,166
    Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
       #6

    Well, I guess i have as all the others those "v1agra@", "R0lex", "****book" in my Spam/Bulk mails....

    I got my Anti-Spam to watch my mails and "Real Time Protection" with Windows Defender and McAfee constantly On...

    I suggest you to create some filters with your AVG/Spam and not authorize those cookies from the AVG engine directly. This will filter some of them and your mail provider will do some either....It can reduce risky spams.

    Those emails i got are old from the beginning and i'm amaze that they're not more spammed than the few mails i receive everyday.
      My Computer


  7. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
    Thread Starter
       #7

    My Bad


    I guess that I didn't describe the situation correctly.
    I don't run an email program on my PC, I use a web-based one. I also receive normal spam (porn, scams, Viagra, etc).
    I have also had my email address spoofed in the past.

    Last year something sent spam to all my contacts (there was a copy in my "Sent" folder).
    I left my other email address in the address book, so I would know if/when it happened again.

    Last week, something read my online email account's address book and sent spam claiming to be me, to the contact in that address book (my other email account).
    There was no copy of the email in my "Sent" folder.

    No malware was found on my PC during the previous and current incidents.

    My previous theory was wrong, anyway as each Firefox profile has its own cache (d'oh).

    Bill2's solution, AutoCleaner 1.1 | AddaxSoft should solve the auto-cache clean problem.
    Thanks, once again, Bill2 for that info.

    Anyway this (my malware attack) wasn't the point of my original post.
    I used that as an example of why someone might want to automatically run a program (using Task Scheduler), after another has been closed.
    Last edited by lehnerus2000; 24 Jun 2010 at 07:54. Reason: Additional
      My Computer


  8. NoN
    Posts : 4,166
    Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
       #8

    lehnerus2000 said:
    Last year something sent spam to all my contacts (there was a copy in my "Sent" folder).
    I left my other email address in the address book, so I would know if/when it happened again.

    Last week, something read my online email account's address book and sent spam claiming to be me, to the contact in that address book (my other email account).
    There was no copy of the email in my "Sent" folder.
    Well, difficult to ask your provider to entirely protect your adress book....they do let only basics features & security parameters.

    I was either using in the early 2001 an adress book in web based one and i've quickly remove any contacts, therefore none can be spammed unless my own mail if i don't set an alternate one.
      My Computer


  9. Posts : 1,814
    XP / Win7 x64 Pro
       #9

    To answer your question, I believe the only way to do something like this without third party software (if such exists) would be to create a scheduled task that runs based on an event in the system log, and then configure the Windows Application Event Logger to log program exits (if possible).

    I'm not sure how else to do this with the native OS options, but I suppose there could be some third party software that aims to do this.
      My Computer


  10. Posts : 4,049
    W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
    Thread Starter
       #10

    Oops that didn't come out right (again)


    lehnerus2000 said:
    Last year something sent spam to all my contacts (there was a copy in my "Sent" folder).
    I left my other email address in the address book, so I would know if/when it happened again.
    Oops!
    That section should have read:
    Last year something sent spam to all my contacts (there was a copy in my "Sent" folder).
    I deleted ALL the contacts from that account's address book (except my other account).
    I left my other email address in the address book, so I would know if/when it happened again.
    NoN said:
    Well, difficult to ask your provider to entirely protect your adress book....they do let only basics features & security parameters.

    I was either using in the early 2001 an adress book in web based one and i've quickly remove any contacts, therefore none can be spammed unless my own mail if i don't set an alternate one.
    I blame them, if they get compromised.
    I DON'T blame my email provider, if my PC gets compromised.

    I deleted ALL the contacts from that account's address book (except my other email account).
    That seemed to be the most effective solution.
    Last edited by lehnerus2000; 24 Jun 2010 at 22:29. Reason: Layout
      My Computer


 
Page 1 of 3 123 LastLast

  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 16:23.
Find Us