Batch file timebomb?


  1. Posts : 97
    Windows 7 Home Premium 64bit SP 1
       #1

    Batch file timebomb?


    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


  2. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #2

    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


  3. Posts : 97
    Windows 7 Home Premium 64bit SP 1
    Thread Starter
       #3

    Wow I was about to say it isn't working. Then I saw I only had taskill... needed that second "K"
    Thanks
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 05:35.
Find Us