1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

.Bat file to kill processes upon confirmation

Discussion in 'Windows XP' started by stevetilsed, 2009/02/24.

  1. 2009/02/24
    stevetilsed

    stevetilsed Inactive Thread Starter

    Joined:
    2009/02/11
    Messages:
    5
    Likes Received:
    0
    Hi all,

    I'd would like some help creating a simple (yeah i know n00b here) .Bat file that kills processes but requires me to confirm i wish for this to be done.

    The background:
    We have several programs at work that are memory hungry when left open for some time (i have the program left open for months at a time) The program takes a while to load and validate so i tend never to close and restart. Basically i would like to create a .Bat file that kills the process when i enter the letter 'Y' and press enter. This way i would be able to add this to scheduled tasks for my breaks and if i am going on my break on time i could say yes and leave it to do the rest.

    I have managed to manually kill a process on a home PC my example follows

    taskkill /im iPodService.exe /f

    However i do not understand the choice command.

    Is this even possible?
    Any help or guidance is much appreciated!

    Steve
     
  2. 2009/02/24
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    Hi Steve.

    Choice is not native to XP but there is a native solution, read this.

    Let me know how you get on and if you need further assistance.
     

  3. to hide this advert.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.