Re: xp shell command using vba

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Rob van Gelder (newsgroups_at_nojunkmail-vangelder.co.nz)
Date: 02/16/04


Date: Mon, 16 Feb 2004 18:56:04 +1300

In the Windows XP Resource Kit (i believe there is one for XP?) there should
be a process kill command line tool. If not, there are plenty on the web.
Use the Shell command to execute.

If you need VBA to wait until the Shell has finished, then do a Google
search for ShellWait.

Oddly enough, you might be able to find an API solution to process killing
by looking at examples that are related to ShellWait.

-- 
Rob van Gelder - http://www.vangelder.co.nz/excel
"Sudhendra" <anonymous@discussions.microsoft.com> wrote in message
news:9e2301c3eb3a$6801ba00$a001280a@phx.gbl...
> Hi Everyone
>
> I want to kill windows xp process tree for a particular
> process using VBA Shell Command.
>
> Detail Description: I am using code to produce PDF's and
> due to come reason my memory is blocking and the printing
> stops saying that "server threw an exception", with some
> R&D I figured that Acrobat Process in Windows XP Task
> Manager if exceeds 100,000K the acrobat is not able to
> print Pdf's.
>
> Can anyone used/seen any code to kill the process tree
> for a particular process.(I know that i need to use the
> Shell commands but never used one)
>
> Please help me in writing the code .... thanks inadvance
>


Relevant Pages

  • Re: Instructions for patching and removing the Sasser worm from infected machines
    ... > Windows XP systems: ... > installation of the patch as well as removal of the worm. ... > must be typed in a command prompt exactly as they are ... > ii. Kill any process starting with 'avserv' (i.e. avserve.exe, ...
    (microsoft.public.security.virus)
  • Attacked by Spyware and Adware
    ... Instructions for patching and cleaning vulnerable Windows 2000 and Windows XP systems. ... The following commands must be typed in a command prompt exactly as they are written below. ... If the machine is acting sluggish or the Internet connection is slow you should use Task Manager to kill the following processes and then try downloading the patch again: ... If the machine is acting sluggish again or the Internet connection is slow, you should once again kill the processes outlined in step 3b above. ...
    (microsoft.public.win2000.security)
  • Re: Listing processes and killing processes through command line in W indows
    ... >are there any windows utility that allows listing of all processes running ... >on the machine on the command line? ... good one and allows either a *close* or a *kill*. ...
    (Security-Basics)
  • Re: How to Kill wowexec.exe
    ... MS-MVP Windows Shell/User ... I need to kill the task from command line using TaskKill or some other ... child process? ...
    (microsoft.public.windowsxp.general)
  • Re: "Command Window Here" question
    ... where is the shell command so I can edit it such that a ... startup batch file can be run when the "Open Command ... > Microsoft PowerToys for Windows XP ... Can I edit the command ...
    (microsoft.public.windowsxp.basics)