Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 558
  • Last Modified:

Ending a windows process from the command line

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.
0
Rogerdude
Asked:
Rogerdude
1 Solution
 
oBdACommented:
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.
0
 
samriCommented:
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

PS.vbs
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.

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

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


Kill:
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>>*
0
 
YarnoSGCommented:
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.

-HTH

-Steven Yarnot
http://yarnosg.home.insightbb.com
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Netman66Commented:
0
 
Netman66Commented:
Oops....sorry, just realized you wanted to kill a process....not a service.

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

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now