Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: help with taskkill  (Read 4901 times)

0 Members and 1 Guest are viewing this topic.

ABIAMDTECH

    Topic Starter


    Rookie

    help with taskkill
    « on: January 26, 2009, 08:42:55 AM »
    I am trying to close an application using taskkill. It works but not completely. When run the batch file. The application will promt " Exit ADSFASDF.exe?" with the choice of YES or NO. Is it possible to select a choice from an application using a batch file? Please give me an example. Thanks.

    stalor214



      Rookie

    • If you have steam join Leet Killorz Clan!!!
      Re: help with taskkill
      « Reply #1 on: January 26, 2009, 09:04:41 AM »
      try using /f after taskkill to forcefully close the application such as

      @echo off
      taskkill /IM notepad.exe /f

      hope this helps

      ABIAMDTECH

        Topic Starter


        Rookie

        Re: help with taskkill
        « Reply #2 on: January 26, 2009, 09:24:12 AM »
        Right now I have this in the batch file:
        taskkill /im ScopeCfg.Exe /t
        I have tried using the /f. It closes everything down, and does not let the application saves the data it collected. The application also locks up so I can't start it again. The only way to start it again is to reboot the system.

        stalor214



          Rookie

        • If you have steam join Leet Killorz Clan!!!
          Re: help with taskkill
          « Reply #3 on: January 26, 2009, 09:27:46 AM »
           ???hmm... thats not normal im. so ur saying it locks up well... let me look at something be back is a few

          stalor214



            Rookie

          • If you have steam join Leet Killorz Clan!!!
            Re: help with taskkill
            « Reply #4 on: January 26, 2009, 09:35:08 AM »
            ok i looked and do you know if the program opens any child processes?
            if it does have you tried try

            taskkill /f /im whatever.exe /t

            im going to look into it some more

            ABIAMDTECH

              Topic Starter


              Rookie

              Re: help with taskkill
              « Reply #5 on: January 26, 2009, 09:56:11 AM »
              Yes it does. It open and run another executable. I have tried taskkill both of them with the /t. It would give me the same message "Exit SI_Scope?" YES, NO. I just tried the code from you "taskkill /f /im whatever.exe /t ". It close the application but it still have the same problem not letting me start the application again. Prompting that the driver is already running and failed to initialize the application. I need to reboot the system to correct this.

              stalor214



                Rookie

              • If you have steam join Leet Killorz Clan!!!
                Re: help with taskkill
                « Reply #6 on: January 26, 2009, 12:01:49 PM »
                im thinking

                Icecold

                • Guest
                Re: help with taskkill
                « Reply #7 on: May 03, 2009, 01:07:30 AM »
                Yeah i'm trying to do the same thing...i mean i got it to work on my other computer the taskkill explorer thing but the cmd pops up for a sec and goes away...it only worked once...i want to know how to do this to do a prank on my friend at his house :D
                i know a little about batch files like the basics and deleting stuff...but i cant really get down the taskkilll... please can anyone help? TY!

                Dusty



                  Egghead

                • I could if she would, but she won't so I don't.
                • Thanked: 75
                • Experience: Beginner
                • OS: Windows XP
                Re: help with taskkill
                « Reply #8 on: May 03, 2009, 01:25:57 AM »
                Quote from: icecold
                i want to know how to do this to do a prank on my friend at his house

                Forum rules forbid members assisting with such "pranks".  Please read these rules from which this quote is extracted:

                Quote
                Members will not assist with....

                Causing users grief / hacking

                    * Treat others as you expect to be treated. Do not harass any member of the forums.
                    * If you’re looking for help with getting revenge on someone else and/or hacking into a program or service look elsewhere.  This also includes supposedly "harmless" pranks.  This is not what Computer Hope was designed for.
                One good deed is worth more than a year of good intentions.