I've tried to figure out how to stop processes at scheduled times. I've tried to use taskkill by typing " taskkill /fi "CPUTime hh:mm:ss" /pid xx " in cmd but the response from taskkill is always "acces denied" (my account have administrator privileges).
You can use the "at" command to schedule tasks from the command line. For example, the time is now 5:16 PM. If I wanted to close notepad at 5:20 PM, I would schedule a task by issuing the following commad...
at 05:16PM taskkill /F /IM notepad.exe
For more information on the "at" command, type at /? at a command prompt.
Well, my problem is taskkill saying "access denied"...also I tried the "at" command and it said that it scheduled it but nothing happens at the scheduled time.
There must be other programs out there (loads of them) that does this...does anybody know of any (that are free) ?
I want to make winamp or other programs shut down at scheduled times.
taskkill /fi "CPUTime 02:30:00" /pid 6932
and gotten the response "access denied".
Also I've tried
at 02:30PM taskkill /pid 6932
and gotten the response "new task created with ID: 1" (or something like that) but when the scheduled time comes nothing happens.
Is it necessary for you to use the PID? PID's change everytime you open and close a program. I wouldn't rely on the PID unless you wanted to create a one-time schedule for a running process. Forget the PID, and use the process name...
at 02:30PM taskkill /F /IM winamp.exe
If you wanted to do this daily, I believe the command would be...
at 02:30PM /every: taskkill /F /IM winamp.exe
PID:s or IM:s are not the problem, the problem is the I get "access denied" when using the command taskkill, which also means that the scheduler "at" can't get access either. I get the same result using /pid and /im.
Besides, using "at" might not be necessary since there's supposed to be a "CPUTime"-filter in the taskkill command to schedule stuff.
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!