Scheduling tasks to close?

Ogo

Member
Sep 8, 2000
126
0
0
I'm wondering if there is any way I can schedule tasks to close at a predetermined time like 7:00am or whatever. For example closing a file sharing program. I'm running WinXP SP1.

Any ideas?
 

igiveup

Golden Member
Feb 17, 2001
1,066
0
0
Using the built in Scheduled Tasks in Xp you can set an application to start, stop and repeat at specified times. Look at the advanced button on the schedule tab. It doesn't show up the first time you set it up. On the last page of the wizard check the box to open the advanced properties when finished, or right click on the scheduled task and choose properties then the schedule tab. Click advanced and there you go.

If you set it to repeat daily it will be easier to manage the task.
 

SoulAssassin

Diamond Member
Feb 1, 2001
6,135
2
0
Originally posted by: igiveup
Using the built in Scheduled Tasks in Xp you can set an application to start, stop and repeat at specified times. Look at the advanced button on the schedule tab. It doesn't show up the first time you set it up. On the last page of the wizard check the box to open the advanced properties when finished, or right click on the scheduled task and choose properties then the schedule tab. Click advanced and there you go.

If you set it to repeat daily it will be easier to manage the task.

If I understand the question correctly, I think he's trying to stop an application that he manually initiated instead of stopping an already scheduled task at a certain time. Say he kicked of Kazaa earlier in the day but wants to stop it before Mom gets home and see the pr0n he's downloading. :)

If you have the 2K resource kit you can use the kill.exe utility and write a simple batch file that just does "kill kazaa.exe". Create a scheduled task (go to start/run type "\\%computername%", click on scheduled tasks and run through the wizard) and point it to that batch file. If you don't have the resource kit there are a number of freeware utilities that function the same way.

 

Ogo

Member
Sep 8, 2000
126
0
0
Actually I'm trying to kill all my file sharing apps before 7:00am, at which time my isp's monthly transfer limits are active (transfers aren't counted between midnight-7am). SoulAssassin, could you point me to a such program? Thanks
 

SoulAssassin

Diamond Member
Feb 1, 2001
6,135
2
0
Originally posted by: Ogo
Actually I'm trying to kill all my file sharing apps before 7:00am, at which time my isp's monthly transfer limits are active (transfers aren't counted between midnight-7am). SoulAssassin, could you point me to a such program? Thanks


I've always been kind of partial to Portix. Good collection of Unix utilities for win32.

Let me know if you have any problems. Pretty straightforward though.
 

Ogo

Member
Sep 8, 2000
126
0
0
I downloaded that but it only seems to have the kill.exe instead of killall.exe, so I can only kill programs by process ID. That's fine except the programs have a different PID every time they start. Do you know of any other similar programs/ utilities? Thanks.
 

SoulAssassin

Diamond Member
Feb 1, 2001
6,135
2
0
Originally posted by: Ogo
I downloaded that but it only seems to have the kill.exe instead of killall.exe, so I can only kill programs by process ID. That's fine except the programs have a different PID every time they start. Do you know of any other similar programs/ utilities? Thanks.

Hmm, thought the Portix one would let you do that. Sorry. Try the SysInternals PsKill utility. This will definitely work and actually lets you kill processes on remote machines.