Batch file timebomb?

Bubbayoshi

New member
Member
VIP
Local time
1:15 PM
Messages
97
I don't really know a better way to describe it, but I want to make a batch file that Task Scheduler can open at a certain time to close a chosen program. I know more Russian than I do coding...
 

My Computer

Computer Manufacturer/Model Number
Alienware M17X-R2
OS
Windows 7 Home Premium 64bit SP 1
CPU
Intel Core i7 720QM @ 1.60 GHz
Motherboard
Alienware A10
Graphics Card(s)
ATI Mobility Radeon HD 5870
Sound Card
ATI High Definition Audio Device
Screen Resolution
1440x900
Hard Drives
313GB Western Digital WDC WD3200BEKT-75F3T0 (SATA)
SeaGate FreeAgent GoFlex 1TB USB 3.0
Cooling
Cooler Master NotePal U3
Mouse
Microsoft Wireless Mobile Mouse 4000
Taskkill command on technet.microsoft.com

TASKKILL /F /IM "notepad.exe"

or if you want user to type program's name
@echo off
CLS
set /p name= Please specify program's name? (example: notepad.exe)
taskkill /f /im %name%
And of course, this won't work on hung programs and some protected programs like antiviruses.

And user can start this program again.
 

My Computer

Computer type
PC/Desktop
OS
Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
Other Info
"The scale icon at the top right of a post or tutorial is how you can give rep to the member."
Wow I was about to say it isn't working. Then I saw I only had taskill... needed that second "K"
Thanks
 

My Computer

Computer Manufacturer/Model Number
Alienware M17X-R2
OS
Windows 7 Home Premium 64bit SP 1
CPU
Intel Core i7 720QM @ 1.60 GHz
Motherboard
Alienware A10
Graphics Card(s)
ATI Mobility Radeon HD 5870
Sound Card
ATI High Definition Audio Device
Screen Resolution
1440x900
Hard Drives
313GB Western Digital WDC WD3200BEKT-75F3T0 (SATA)
SeaGate FreeAgent GoFlex 1TB USB 3.0
Cooling
Cooler Master NotePal U3
Mouse
Microsoft Wireless Mobile Mouse 4000
Back
Top