Re: DOS Commands

From: Rick (me_at_privacy.net)
Date: 02/23/05


Date: Wed, 23 Feb 2005 11:54:05 -0800


"Steve Parry [MVP]" <k100rs_1990@nospam.hotmail.com> wrote in message news:Ou1qq$dGFHA.3612@TK2MSFTNGP09.phx.gbl...
> McGraw fumbled, fiddled and fingered:
>
> > Does anyone know a DOS command to close a program? We need to
> > automate a process and are trying to get a batch file that will open
> > an exe and then close it once the process is complete. We have
> > everything except the closing the program. We need it closed for
> > security reasons.
> >
> > Thanks
>
> http://www.sysinternals.com/ntw2k/freeware/pskill.shtml

That will work only if the program exits and returns control to
the batch file. And if the program does exit it's not necessary,
as one can close the batch file window with a simple EXIT
command.

One option is to create a separate batch file that runs after the
first is completed, and kills the process.



Relevant Pages

  • DOS Commands
    ... Does anyone know a DOS command to close a program? ... We need to automate a ... process and are trying to get a batch file that will open an exe and then ... We need it closed for security reasons. ...
    (microsoft.public.win2000.general)
  • question about wake on lan
    ... I can run the "wake on lan" from the dos command line as: ... Is it possible to automate this in a batch file so I don't have to type it ...
    (microsoft.public.windowsxp.network_web)
  • Re: a self deleting program
    ... can understand using a dos command if it is an *absolute* last resort but in ... But then the customer's virus scanner picks up on this and ... deny the batch file altogether, ...
    (microsoft.public.vb.general.discussion)
  • Re: drag/drop file-icon on tcl-script? on windows
    ... drag a file onto the programs Icon, or it's shortcut, and ... Wrap your script in a batch file. ... start tclkit "%~f0" & exit ... Most people on windows have ActiveState so he's more likely to have ...
    (comp.lang.tcl)
  • RE: How to make a batch file to start program and close the old window?
    ... How to make a batch file to start program and closethe ... a signal when your parent shell exits. ... nohup command & ... the '&' lets the shell continue instead of waiting, and the 'exit' ...
    (Fedora)