Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

XP Home and taskkill.exe

- - - - -

  • Please log in to reply
12 replies to this topic

#1
XKnoppix

XKnoppix

    Member

  • Member
  • PipPip
  • 207 posts
  • Joined 15-February 04
I get an error when trying to use taskkill.exe on my Home Edition cd?! I've tried to download the pskill tool, but i can't quite figure out where to put it or how to use it?

On the other hand, here's a batch file to install mirc with all my settings...

RunOnceEx.cmd
REG ADD %KEY%\080 /VE /D "mIRC" /f
REG ADD %KEY%\080 /V 1 /D "%CDROM%\Batch\mirc.cmd" /f
REG ADD %KEY%\080 /V 2 /D "REGEDIT /S %CDROM%\Registry\mirc.reg" /f

mirc.cmd
cmdow @ /HID
@echo off

XCOPY "%CDROM%\Applications\mIRC" "%systemdrive%\Program Files\mIRC" /E /I /Q /H /R /Y

EXIT

Now i don't understand XCOPY that well but it all looks good to me, why doesn't it work?

Thanks


How to remove advertisement from MSFN

#2
DarkBringer

DarkBringer

    Member

  • Member
  • PipPip
  • 219 posts
  • Joined 06-August 03
  • OS:none specified
  • Country: Country Flag
What error did you get and what switches did you use for taskkill.exe?
If a man speaks in a forest, and no woman is there to hear him, is he still wrong?

#3
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
task kill i'd assume is harder to use than pskill
i'd grab pskill, put it in your system32 folder so that u can call it from anywhere
then pskill "name of the file with extension"
that's it..

for mirc it definitely should be working, one thing that might be confusing the xcopy might be %cdrom% u might need to re define the cdrom path in the batch file...



#4
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,888 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
As XMac said It copy to system32 folder but it wouldn't work for me so I just changed it and use this way for Incredimail.

REG ADD %KEY%\iAdd /V 2 /D "%systemroot%\System32\pskill IncMail" /f
You have to kill whatever process it is and whatever you're trying to kill may be short name like that Incredimail.
for Zonealarm "%systemroot%\System32\pskill zclient" /f
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#5
gosh

gosh

    gosh 2.0

  • Patrons
  • 2,347 posts
  • Joined 03-October 03
  • OS:none specified
  • Country: Country Flag
taskkill.exe is not on xp home, therefore you'll get an error saying invalid command.

http://gosh.msfnhost...com/compare.htm

-gosh

#6
XKnoppix

XKnoppix

    Member

  • Member
  • PipPip
  • 207 posts
  • Joined 15-February 04
Here's some code for Loghorn Transformation pack with taskkill.exe:
REG ADD %KEY%\170 /VE /D "Longhorn Transformation Pack" /f
REG ADD %KEY%\170 /V 1 /D "%CDROM%\Applications\Longhorn\LTP.exe /s" /f
REG ADD %KEY%\170 /V 2 /D "taskkill.exe /F /IM LTP.exe" /f

So if home doesn't have taskkill, would it be like this?
REG ADD %KEY%\170 /VE /D "Longhorn Transformation Pack" /f
REG ADD %KEY%\170 /V 1 /D "%CDROM%\Applications\Longhorn\LTP.exe /s" /f
REG ADD %KEY%\170 /V 2 /D "%systemroot%\System32\pskill LTP.exe" /f

Then i just throw pskill into $OEM$\$$\System32...?

#7
killerbee

killerbee

    Senior Member

  • Member
  • PipPipPipPip
  • 500 posts
  • Joined 22-April 03
hi,

yeah, ur last code looks very promising to me if u have downloaded the PSTools from Wininternals and put them in $OEM$\$$\System32.

cya

Killer Bee
My Rig: ABit NF7-S - Barton2500+@2.2GHz(50┬░Cel. max while Prime95)
1GB RAM - 2* Mushkin 512MB CL2 232 - Soundstorm with a Logitec Z-5500 Digital - 1*Samsung 160GB SATA1 - 1*80GB Hitachi SATA1 - 1* Pioneer DVR-106DB - 1*LG DVD - 1*Yamaha CRW-F1 - 4Port USB2 Card
In a Chieftec Mesh Blue Big Tower with WindowKit and Blue Lights

#8
Aaron

Aaron

    The MSFN Banana

  • Patrons
  • 5,767 posts
  • Joined 17-August 01
  • OS:Windows 7 x64
  • Country: Country Flag
And if you have pskill in the System32 directory, there's no need to state the full path to it (%systemroot%\System32\)

#9
tcsdoc

tcsdoc

    Junior

  • Member
  • Pip
  • 61 posts
  • Joined 02-September 03
I've tried using pskill to no avail I tried the suggestions about placing the file in the system32 folder and giving the path but during the install I get the error "pskill is not recognized as an internal commmand" (I'm paraphrasing). I'm trying to kill Yahoo Messenger and this is the line I'm trying to use:

%systemroot%\system32\pskill.exe YPager

The file is stored in the x:\xpcd\i386\system32 folder using the name pskill.exe.

Can anyone help on this? :)

#10
Winxptwker

Winxptwker

    Junior

  • Member
  • Pip
  • 97 posts
  • Joined 29-October 03
If you put any program in System32\ you don't need to type in the full path just the name of the program you want to use (in this case, pskill) and you don't need the .exe at the end of pskill. Just type like this:

pskill appname

Windows will automatically look in your system32 folder for the pskill program.

#11
[BM]Crusher

[BM]Crusher

    Got milk?

  • Member
  • PipPipPipPip
  • 570 posts
  • Joined 05-April 04

%systemroot%\system32\pskill.exe YPager

The file is stored in the x:\xpcd\i386\system32 folder using the name pskill.exe.

Can anyone help on this?


if you have only placed the pskill.exe file into the i386\system32 directory on your XP CD then no wonder it isn't working...

you should have placed it in the $OEM$\$$\system32 directory instead,
otherwise it will not get copied to %systemroot%\system32 and you cannot run it,
unless you want to run %CDROM%\i386\system32\pskill

#12
[BM]Crusher

[BM]Crusher

    Got milk?

  • Member
  • PipPipPipPip
  • 570 posts
  • Joined 05-April 04

unless you want to run %CDROM%\i386\system32\pskill

obviously you can only use this command if %CDROM% is defined somehow (usually using a batch file and the SETENV command which will enable %CDROM% to be accessed from subsequent batch files)

#13
tcsdoc

tcsdoc

    Junior

  • Member
  • Pip
  • 61 posts
  • Joined 02-September 03
Thanks [BMCrusher] for the assistance. I didn't realize what the $$ folder was used for. Your suggestion worked great.

And the learning continues....




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN