Jump to content

Recommended Posts

Posted (edited)

You can try it ... but as far as I remember there was a splash screen which lasted a little more than with the cmdow.

Edited by sadicq

Posted (edited)

I think that's why I did it my way, the dos screen is mutch shorter.

I can change it back with cmd /c so wpi does the command.

Do that after my problem is solved. :lol:

That wil also be after my vacation.............

Edited by Pliek
Posted (edited)

Ok, I made a little exe you have to put on your cd or in your windows.

It accepts only one command-line parameter and that is a process name that should kill.

The AutoIT code

#include "process.au3"
If $cmdline[0] = 1 Then
_RunDOS('taskkill /im "' & $cmdline[1] & '" /f')
EndIf

Not that complicated, right? :w00t:

Usage

TaskKillS program.exe

I'll upload only the compiled version.

Link

Edit: I forgot to say it displays no splash screen at all.

Edited by sadicq
Posted
Ok, I made a little exe you have to put on your cd or in your windows.

It accepts only one command-line parameter and that is a process name that should kill.

The AutoIT code

#include "process.au3"
If $cmdline[0] = 1 Then
_RunDOS('taskkill /im "' & $cmdline[1] & '" /f')
EndIf

Not that complicated, right? :w00t:

Usage

TaskKillS program.exe

I'll upload only the compiled version.

Link

Edit: I forgot to say it displays no splash screen at all.

Thanks sadicq, hope I can test it today...otherwise it wil be when I rerurn at about 2 weeks.

Have to clean my mind now.... :whistle:

LOL :thumbup

Posted

What is bohtering me is why I got the delay in 5.2 and 5.3 and not in my smooth runnig 5.1.

If someone can give a answer to that.......

Bye. :hello:

Posted
Ok, I made a little exe you have to put on your cd or in your windows.

It accepts only one command-line parameter and that is a process name that should kill.

The AutoIT code

#include "process.au3"
If $cmdline[0] = 1 Then
_RunDOS('taskkill /im "' & $cmdline[1] & '" /f')
EndIf

Not that complicated, right? :w00t:

Usage

TaskKillS program.exe

I'll upload only the compiled version.

Link

Edit: I forgot to say it displays no splash screen at all.

Hey do you mind if I add this to the tools archive?

Posted (edited)

Dont mind if I change the icon do you? Also where does it need to be located for use? In the system32 dir or the install folder or what?

Edited by Kelsenellenelvian
Posted

You can use whatever icon you want.

It can be put in the system32, but you can call it from anywhere as long as you include the full path.

Posted

Ok, I made a little exe you have to put on your cd or in your windows.

It accepts only one command-line parameter and that is a process name that should kill.

The AutoIT code

#include "process.au3"
If $cmdline[0] = 1 Then
_RunDOS('taskkill /im "' & $cmdline[1] & '" /f')
EndIf

Not that complicated, right? :w00t:

Usage

TaskKillS program.exe

I'll upload only the compiled version.

Link

Edit: I forgot to say it displays no splash screen at all.

Hey do you mind if I add this to the tools archive?

Kel & sadicq, please note that taskkill is only for XP Pro.

XP home has a tskill instead.

I'd reckon to use AutoIt's ad hoc function which will work in any case (see the AutoIt help file for the 'ProcessClose' function):

If $cmdline[0] Then ProcessClose($cmdline[1])

Compile it with the same name and use it the same way.

Posted

I know that function. It oftenly fails to close some processes which are not responding or are using much cpu power. So, long story short, processclose is not an option.

I'll look into this later, and I'll consider rewriting that in vb .net as I'm trying to learn it right now.

Or I'll attach the original takkill to the exe and extract it when needed.

Anyway, I wrote that just to show you how easy it is to hide it ... so it's not vital for the non-XP users.

Posted

Yes, autoIt used to have problems with delays on heavy loads sometimes.

What about a loop forcing it?

If $cmdline[0] Then
While ProcessExists($cmdline[1])
ProcessClose($cmdline[1])
WEnd
EndIf

Anyway, I was just mentioning this as Kel is looking for 'universal' solutions: we don't want bug reports saying TaskKillS is not working on some machine ;) .

If you prefer to stick to the attached exe and fear an issue with the licence, maybe Process.exe (25Kb, freeware) from Beyonlogic is a good choice...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...