XKnoppix Posted April 21, 2004 Share Posted April 21, 2004 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.cmdREG ADD %KEY%\080 /VE /D "mIRC" /fREG ADD %KEY%\080 /V 1 /D "%CDROM%\Batch\mirc.cmd" /fREG ADD %KEY%\080 /V 2 /D "REGEDIT /S %CDROM%\Registry\mirc.reg" /fmirc.cmdcmdow @ /HID@echo off XCOPY "%CDROM%\Applications\mIRC" "%systemdrive%\Program Files\mIRC" /E /I /Q /H /R /Y EXITNow i don't understand XCOPY that well but it all looks good to me, why doesn't it work?Thanks Link to comment Share on other sites More sharing options...
DarkBringer Posted April 21, 2004 Share Posted April 21, 2004 What error did you get and what switches did you use for taskkill.exe? Link to comment Share on other sites More sharing options...
XtremeMaC Posted April 21, 2004 Share Posted April 21, 2004 task kill i'd assume is harder to use than pskilli'd grab pskill, put it in your system32 folder so that u can call it from anywherethen 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... Link to comment Share on other sites More sharing options...
maxXPsoft Posted April 21, 2004 Share Posted April 21, 2004 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" /fYou 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 Link to comment Share on other sites More sharing options...
gosh Posted April 21, 2004 Share Posted April 21, 2004 taskkill.exe is not on xp home, therefore you'll get an error saying invalid command.http://gosh.msfnhosting.com/compare.htm-gosh Link to comment Share on other sites More sharing options...
XKnoppix Posted April 21, 2004 Author Share Posted April 21, 2004 Here's some code for Loghorn Transformation pack with taskkill.exe:REG ADD %KEY%\170 /VE /D "Longhorn Transformation Pack" /fREG ADD %KEY%\170 /V 1 /D "%CDROM%\Applications\Longhorn\LTP.exe /s" /fREG ADD %KEY%\170 /V 2 /D "taskkill.exe /F /IM LTP.exe" /fSo if home doesn't have taskkill, would it be like this?REG ADD %KEY%\170 /VE /D "Longhorn Transformation Pack" /fREG ADD %KEY%\170 /V 1 /D "%CDROM%\Applications\Longhorn\LTP.exe /s" /fREG ADD %KEY%\170 /V 2 /D "%systemroot%\System32\pskill LTP.exe" /fThen i just throw pskill into $OEM$\$$\System32...? Link to comment Share on other sites More sharing options...
killerbee Posted April 21, 2004 Share Posted April 21, 2004 hi,yeah, ur last code looks very promising to me if u have downloaded the PSTools from Wininternals and put them in $OEM$\$$\System32.cyaKiller Bee Link to comment Share on other sites More sharing options...
Aaron Posted April 21, 2004 Share Posted April 21, 2004 And if you have pskill in the System32 directory, there's no need to state the full path to it (%systemroot%\System32\) Link to comment Share on other sites More sharing options...
tcsdoc Posted April 30, 2004 Share Posted April 30, 2004 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 YPagerThe file is stored in the x:\xpcd\i386\system32 folder using the name pskill.exe.Can anyone help on this? Link to comment Share on other sites More sharing options...
Winxptwker Posted April 30, 2004 Share Posted April 30, 2004 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 appnameWindows will automatically look in your system32 folder for the pskill program. Link to comment Share on other sites More sharing options...
[BM]Crusher Posted April 30, 2004 Share Posted April 30, 2004 %systemroot%\system32\pskill.exe YPagerThe 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 Link to comment Share on other sites More sharing options...
[BM]Crusher Posted April 30, 2004 Share Posted April 30, 2004 unless you want to run %CDROM%\i386\system32\pskillobviously 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) Link to comment Share on other sites More sharing options...
tcsdoc Posted April 30, 2004 Share Posted April 30, 2004 Thanks [bMCrusher] for the assistance. I didn't realize what the $$ folder was used for. Your suggestion worked great. And the learning continues.... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now