Sponsored by: █ Sparkhost - Hosting Without Compromises! █ Hybrid Performance Web Hosting █ Spark Host Stream Hosting █ Hybrid IRC & IRCd Server Shell Accounts
Kill Process In Cmd
#1
Posted 18 April 2004 - 10:57 PM
Anyone knows how?
#2
Posted 18 April 2004 - 11:05 PM
site exec kill.exe program.exe
Attached Files
#3 Guest_BlaStA_*
Posted 18 April 2004 - 11:28 PM
Is there any way to kill process via CMD or something, but without using 3rd party tools to do it???
If the OS is XP, you could use taskkill. Perhaps a bit more background information would be nice.
#4
Posted 18 April 2004 - 11:55 PM
#5
Posted 18 April 2004 - 11:58 PM
Attached Files
#6
Posted 19 April 2004 - 12:07 AM
And like Blasta said you can kill porcesses in WIndows XP with Taskkill.exe and list them with Tasklist.exe
I don't think it's not possible to kill processes in cmd without 3rd party tools on an OS prior to XP
#7
Posted 19 April 2004 - 01:11 AM
@echo off
:choice
@echo .##########################
@echo .##########################
@echo 1 List ####################
@echo 2 Kill ####################
@echo off
set /p choice=
if %choice% == 1 goto List
if %choice% == 2 goto Kill
:List
@echo off
@echo all processes
set /p Liste=
pslist.exe %Liste%
pause
cls
goto choice
:Kill
@echo off
@echo Enter the process to be terminated
set /p Prozess=
pskill.exe %Prozess%
pause
cls
goto choice
save that to a bat file to have an english version
emm dude did u even read what the person wrote he wants to do it via cmd line taskmgr.exe is a gui program not a console onebnhc Posted on Apr 19 2004, 07:55 AM
Try CTRL+ALT + DEL and choose the process which u would like to kill....
(*looks @ the date* few right date this time
#8
Posted 19 April 2004 - 01:14 AM
to get a list of processes you type in this:
net start
Then stop the service by doing:
net stop "service name"
I hope this helps...
#9
Posted 19 April 2004 - 01:29 AM
#10
Posted 19 April 2004 - 03:20 AM
I use pslist everyday because of ONE thing it has over the simple TLIST.exe : it shows the directory where the .exe is located ! Very nice to remove hackers, in fact. Not to add pslist list process that Tlist doesn't (ie rootkited process)
Fport + pslist => nice combo
#11
Posted 19 April 2004 - 03:35 AM
However I once found vbscripts which do exactly what you need at microsofts knowledge center.
the scripts are rather big but work nicely!!
attached are 2 scripts one will list the PIDs
usage: cscript process.vbs
the other one will kill the process
usage: cscript kill.vbs PID
Attached Files
#12
Posted 19 April 2004 - 03:49 AM
nice scriptsthere is no buildin program in windows that can list or kill process within cmdprompt.
btw there is a task killer built into windowsxp called taskkill - BlaStA even mentioned this in the third post!
eg: from command line kill internet explorer
taskkill /IM iexplore.exe
edit2: hehe killaloop i was editing this post as u were writing urs - 4 minutes thats quick
#13
Posted 19 April 2004 - 03:53 AM
yes but taskkill is only present in windows xp as far as I know?nice scriptsthere is no buildin program in windows that can list or kill process within cmdprompt.
However I once found vbscripts which do exactly what you need at microsofts knowledge center.
the scripts are rather big but work nicely!!
attached are 2 scripts one will list the PIDs
usage: cscript process.vbs
the other one will kill the process
usage: cscript kill.vbs PID
btw there is a task killer built into windows called taskkill - BlaStA even mentioned this in the third post!
eg: from command line kill internet explorertaskkill /IM iexplore.exe
don't have it on my win2000 system.
Recording to Microsoft the vb scripts should work on any os starting from nt4.0 up to now (but who knows...)
#14
Posted 19 April 2004 - 09:29 AM
/* QPROCESS WILL DISPLAY THE PROCESS RUNNING */
Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Winds of War>QPROCESS
USERNAME SESSIONNAME ID PID IMAGE
>winds of war console 0 1168 explorer.exe
>winds of war console 0 1624 mcvsshld.exe
>winds of war console 0 1632 mcagent.exe
>winds of war console 0 1668 mcvsescn.exe
>winds of war console 0 1728 dap.exe
>winds of war console 0 1792 mpfagent.exe
>winds of war console 0 1880 mpftray.exe
>winds of war console 0 2004 plguni.exe
>winds of war console 0 164 msmsgs.exe
>winds of war console 0 732 mcvsftsn.exe
>winds of war console 0 1576 iexplore.exe
>winds of war console 0 3356 wuauclt.exe
>winds of war console 0 3408 cmd.exe
>winds of war console 0 3468 qprocess.exe
C:\Documents and Settings\Winds of War>TSKILL 3408
/* TSKILL 3408 WILL KILL THE CMD PROCESS RUNNING*/
#15 Guest_tstngry_*
Posted 19 April 2004 - 08:42 PM
1. taskkill /f /im appname.exe
2. taskkill /f /pid appid
-To see a list of tasks and their process id's type "tasklist" im not sure if this only works in winxp, but those are the boxes i usually root anyway
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users














