start>>run type cmd.exe
in command prompt type "tasklist", it will show all running tasks list
to end a task type "tskill taskname",
eg: if u want to kill a process "xyz.exe"
tskill xyz
in windows vista version insted of" tskil"l use" taskkill"
you can get more information on tasklist and tskill by its help
type tskill/? for tskill help
"C:\windows\system32>tskill/?
and for tasklist type tasklist/?
C:\Documents and Settings\Arun>tasklist/?
Saturday, February 7, 2009
How to Start and Stop Services using command promt
First take command prompt
(start >> run - type "cmd.exe" click "ok")
to stop a service "xyz" type
net stop xyz
syntax: net stop (servicename)
to start the service type
net start xyz
syntax: net start (servicename)
The service name for a particular executable file can be found in the registry
to view the service list in registry
First open "regedit.exe"
(start>> run - type "regedit.exe" click "ok")
goto the path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services"
suppose you have to find a service that run a executable file "xyz.exe"
search by the file name "xyz.exe" ( ctrl + f3 to take search)
the search result will be
"Display Name" is "service name"
to stop this service,
the command is "net stop servicexyz"
(start >> run - type "cmd.exe" click "ok")
to stop a service "xyz" type
net stop xyz
syntax: net stop
to start the service type
to view the service list in registry
First open "regedit.exe"
(start>> run - type "regedit.exe" click "ok")
goto the path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services"
suppose you have to find a service that run a executable file "xyz.exe"
search by the file name "xyz.exe" ( ctrl + f3 to take search)
the search result will
the command is "net stop servicexyz"
Subscribe to:
Posts (Atom)