Jump to content

kill a aplication


jquintino

Recommended Posts

hello to all

i need to kill a aplication

i use takkill but dont works ...

this is my runoence

cmdow @ /HID
@Echo Off


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx



REG ADD %KEY%\029 /V 1 /D "%systemdrive\programas\pdfreader\pdfreader.exe" /F
REG ADD %KEY%\029 /V 2 /D "TASKKILL /F /IM PDFReader.exe /T" /f



EXIT

could someone tell me here is the error

Link to comment
Share on other sites


jquintino, taskkill.exe is not present in XP home or Win2k.

You can use this alternative (much better too) - pskill.

Usage:

pskill PDFReader.exe

Ensure you have pskill.exe in "$OEM$\$$\System32\" on your CD, to be able to use it from command-line.

Hoping this helps...

Link to comment
Share on other sites

Well, the point is if U R familiar with this syntax, U can work with almost everything (that have WMI providers) - HW, SW, processes, user accounts, services, OS etc... For me it is faster to use wmic command than to remember another syntax. And WMIC is in every XP, so no need for external commands ;)

Link to comment
Share on other sites

what i understand is this

cmdow @ /HID
@Echo Off


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx



REG ADD %KEY%\029 /V 1 /D "%systemdrive\programas\pdfreader\pdfreader.exe" /F
REG ADD %KEY%\029 /V 2 /D "pskill PDFReader.exe " /f

using the pskill inside the folder sytem32

right?

Link to comment
Share on other sites

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...