Link to home
Start Free TrialLog in
Avatar of asyab
asyabFlag for Türkiye

asked on

how can i kill a process by force

Hello,
i have a process named ws_rep.exe (ca xosoft replicator)
and service stopped but this process is working still.
when i try to kill via task manager i didn't any error but i can see process in task manager
so i tried pskill or something like that..i cant remove the process from tasklist..
how can i remove this process ?
thanks
Avatar of EYRajeshTV
EYRajeshTV
Flag of India image

end process tree from task manager
or
Try Taskkill /F /IM ws_rep.exe /T from command prompt using an admin account or
download  process viewer and kill the process using that .
Avatar of rubikru
rubikru

Avatar of asyab

ASKER

yeah i know taskkill command but it can't kill my process..
Then try process viewer and kill it using that
Avatar of asyab

ASKER

i used process viewer, process explorer and pskill but process still working :(
SOLUTION
Avatar of Lucian Constantin
Lucian Constantin
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of asyab

ASKER

i cant restart my server...


torque, i run your scrpt but i didnt see anything ? what can i do ?
is that the process is restarting  every time or its not even been killed for a single time...
Avatar of asyab

ASKER

i think this process working as child process of services.exe
and hanging on services.exe so i cant kill it because this process is depending on services.exe
Put an .vbs extension to the text file name p.ex. myfile.vbs and then run it again within a command line prompt like:

c:\(path)> cscript myfile.vbs

if the output is  something like:

-----------------------------------
Microsoft (R) Windows Script Host versión 5.7
Copyright (C) Microsoft Corporation 1996-2001.

Proccess PID: 5008 terminated
-----------------------------------

then the process has been killed.

else if the output is more like

-----------------------------------
Microsoft (R) Windows Script Host versión 5.7
Copyright (C) Microsoft Corporation 1996-2001.

-----------------------------------

Then you have no process with the name ws_rep.exe or you can't kill it.

GZ
Avatar of asyab

ASKER

yeah it gave me only
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
so i cant kill it right ?
rigth, you can't kill it, the process do not exist or is name is not EXACTLY "ws_rep.exe". The script is not too smart you know? :P

 Use the tasklist command for your complete process list and correct the script if it proceeds.

GZ
Avatar of asyab

ASKER

thanks but i think i have to restart my server :(
so thanks for your hellp
Avatar of asyab

ASKER

thanks