Ending a windows process from the command line

Posted on 2003-03-05
Medium Priority
Last Modified: 2010-04-13
What i'd like to do is end the process of NTVDM (that gets loaded when I launch a certain application and also loads the child process wowexec) with a command that can be typed into a Batch or Command file.
Question by:Rogerdude
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 85

Accepted Solution

oBdA earned 400 total points
ID: 8078271
kill.exe and tlist.exe from the W2k Support Tools will do that for you.
On your W2k CD, go to \SUPPORT\TOOLS and run setup.exe, that will install the support tools and the above programs.
LVL 15

Expert Comment

ID: 8078414
If you installed Win2K Resource Kit, you could use ps.vbs to view the process, and kill.exe (from Support Tools) to kill the process.  

*** And yes kill is mentioned by oBdA

C:\Program Files\Support Tools>ps.vbs /?
Microsoft (R) Windows Script Host Version 5.1 for Windows
Copyright (C) Microsoft Corporation 1996-1999. All rights reserved.

Lists all jobs currently running on a machine.

  PS.vbs [/S <server>] [/U <username>] [/W <password>]
  [/O <outputfile>]

   server        A machine name.
   username      The current user's name.
   password      Password of the current user.
   outputfile    The output file name.

C:\Program Files\Support Tools>kill /?
Microsoft (R) Windows NT (TM) Version 3.5 KILL
Copyright (C) 1994-1998 Microsoft Corp. All rights reserved

usage: KILL [options] <<pid> | <pattern>>*

Expert Comment

ID: 8079618
SYSinternals (at http://www.sysinternals.com) has some really good command line (FREE) tools;  among these is PSKill;  it is more robust than the resource kit tool's kill.  Their other tools rock also.


-Steven Yarnot
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

LVL 51

Expert Comment

ID: 8080636
LVL 51

Expert Comment

ID: 8080650
Oops....sorry, just realized you wanted to kill a process....not a service.

The Kill.exe tool, but you'll need the PID.


Author Comment

ID: 8080681
Well, kill.exe did it just fine. The points go the first guy that answered, but thank you all for your efforts.

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question