1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Batch File that kills task and makes a text file

Discussion in 'Windows - General discussion' started by PS2FAT, Jan 29, 2008.

  1. PS2FAT

    PS2FAT Member

    Joined:
    Dec 10, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    I have made a batch file that ends processes but the problem is when it saves the info to the text it doesn't show if the processes was sucsessfully deleted.

    Does any one out there know a script that could possibly do that
     
  2. Indochine

    Indochine Regular member

    Joined:
    Dec 21, 2006
    Messages:
    1,485
    Likes Received:
    0
    Trophy Points:
    46
    What OS are you using? Are you using taskkill?

    I had a program running

    C:\>ver

    Microsoft Windows XP [Version 5.1.2600]

    C:\>taskkill /F /FI "WINDOWTITLE eq Quince"
    SUCCESS: The process with PID 1112 has been terminated.

    C:\>taskkill /F /FI "WINDOWTITLE eq Quince" > results.txt

    C:\>type results.txt
    SUCCESS: The process with PID 1552 has been terminated.




     
  3. PS2FAT

    PS2FAT Member

    Joined:
    Dec 10, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    i am running windows Xp

    thanks for the info
    i was using taskkill /im "Windows title" /f
     
  4. PS2FAT

    PS2FAT Member

    Joined:
    Dec 10, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    it didn't work but thanks for trying
     

Share This Page