Link to home
Start Free TrialLog in
Avatar of AndyO
AndyOFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Stop an application

If I am running an application (ie notepad) could I run a Dos command to stop it?

If so - how?
Avatar of Raybans
Raybans
Flag of Australia image

yes

there is a command from the Windows NT4 resource kit you can use

in Windows XP you can use taskkill command

http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=/WINDOWSXP/home/using/productdoc/en/taskkill.asp

you just need to know the name of the process or task

you can use the task manager to test and check for what it may be

notepad will be notepade.exe

so in Windows XP

taskkill /s userspcname /u domainname\adminaccount /p mypassword /im notepad.exe

this should kill the notepad session on the "userspcname" with your credientials
Avatar of mrfuji
mrfuji

The tool you need is already in XP.

tskill.exe

you just need to know the process id or process name.

ex.  tskill notepad
ASKER CERTIFIED SOLUTION
Avatar of Joseph_Moore
Joseph_Moore

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 Adrian Sluijters
Not with Win 3.x, 9x, ME and alike.. Only the NT family of Operating Systems come with task killers..