Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Make Task Scheduler run a program after another closes?


22 Jun 2010   #1

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
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 System SpecsSystem Spec
.

22 Jun 2010   #2
NoN

Windows 7 Professional SP1 - x64
 
 

Quote   Quote: Originally Posted by lehnerus2000 View Post
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 System SpecsSystem Spec
22 Jun 2010   #3

Vista Premium
 
 

Quote   Quote: Originally Posted by lehnerus2000 View Post
...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 System SpecsSystem Spec
.


22 Jun 2010   #4

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

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 System SpecsSystem Spec
22 Jun 2010   #5

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
Thanks guys, for your replies/suggestions.

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

Quote   Quote: Originally Posted by NoN View Post
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).

Quote   Quote: Originally Posted by Chris K View Post
Quote   Quote: Originally Posted by lehnerus2000 View Post
...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).

Quote   Quote: Originally Posted by Bill2 View Post
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 System SpecsSystem Spec
23 Jun 2010   #6
NoN

Windows 7 Professional SP1 - x64
 
 

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 System SpecsSystem Spec
24 Jun 2010   #7

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
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.
My System SpecsSystem Spec
24 Jun 2010   #8
NoN

Windows 7 Professional SP1 - x64
 
 

Quote   Quote: Originally Posted by lehnerus2000 View Post
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 System SpecsSystem Spec
24 Jun 2010   #9

XP / Win7 x64 Pro
 
 

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 System SpecsSystem Spec
24 Jun 2010   #10

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
Oops that didn't come out right (again)

Quote   Quote: Originally Posted by lehnerus2000 View Post
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.

Quote   Quote: Originally Posted by NoN View Post
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.
My System SpecsSystem Spec
Reply

 Make Task Scheduler run a program after another closes?




Thread Tools



Similar help and support threads for2: Make Task Scheduler run a program after another closes?
Thread Forum
Task scheduler program start minimized Software
Task scheduler unable to load task status/active tasks at startup. Performance & Maintenance
Solved How to close/exit some program using Task Scheduler in Windows 7? General Discussion
Task Scheduler - run program on wake General Discussion
Solved Task Scheduler failing to start task with merged network locations General Discussion
How to Configure Task Scheduler to Run Program When Dial-up Connection Performance & Maintenance
Task Scheduler Trigger @ Program shutdown Performance & Maintenance

Our Sites

Site Links

About Us

Find 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 12:25 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33