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
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.2 MATE (64 bit), W10IP VM
 
 
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 [Non-UEFI Boot]
 
 

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
Chris K

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
Bill2

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
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.2 MATE (64 bit), W10IP VM
 
 
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 [Non-UEFI Boot]
 
 

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
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.2 MATE (64 bit), W10IP VM
 
 
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 [Non-UEFI Boot]
 
 

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
FliGi7

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
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.2 MATE (64 bit), W10IP VM
 
 
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
Thread Forum
How to use Task Scheduler to close a program?
Is there a way to use TS to close programs? I want a way to schedule times for certain programs to close. I already know how to use TS to shutdown the computer. Also, i'd prefer if no annoying messages popped up, like when I schedule a shutdown the computer pops up with "Your computer will...
General Discussion
How to make a shortcut to task scheduler
How can I make a shortcut to the Windows 7 Task Scheuler? I'm using it often and each time I go to Windows Help and search for task scheduler. Then click through the results several times before I get to the window showing my actual scheduled tasks. It would save tons of time, if you can...
General Discussion
Task scheduler program start minimized
Hello all, I just discovered the task scheduler and I am using it to start programs at logon, like eraser. The only problem is I would like to start them minimized and I can't quite figure out how to do that. I have set the program properties to run minimized but it doesn't want to play nice. Is...
Software
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. ...
General Discussion
Task Scheduler - run program on wake
I simply want to run a program when the computer returns from standby, but I see no options in the scheduler. Help?
General Discussion
Task Scheduler Trigger @ Program shutdown
Hello, I would like a particular Task to run each time the Firefox application is closed, or, perhaps easier, each time my computer shutdowns. But I have no idea how to set up such Trigger. Have any of you an idea on how I should proceed? Thanks for the help.
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 14:14.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App