Jump to content

Recommended Posts

Posted

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


Posted

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

Posted

you now that pdfreader from foxit dont associat the files but if you run one time

the pfdfreader associat instantadly

sorry my bad ingies :rolleyes:

Posted

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 ;)

Posted

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?

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