stopping a .bat script

From: Dietmar Hochsteing (d.hochsteing_at_stemmer.de)
Date: 09/27/05


Date: Tue, 27 Sep 2005 18:42:17 +0100

Hi guys,

I've written a small batch script which itself calls Windows Scripting
Host (cscript.exe), the purpose being that a remote webcam start
broadcasting images. It all works well, but I'd like to be able to
cancel this broadcasting script via another script, as I am actually
connected to the host computer via ssh. In Unix, it'd be easy, a simple
pipe "ps x | grep <scriptname> | kill" would get the process ID and
kill it, but there is no such things on Windows. So does anyone know a
scriptable way to stop another running script?

Thanks

Dietmar



Relevant Pages

  • Re: internet proxy
    ... Is it possible to create separate shortcuts to IE - one with 'proxy server ... This script gets used when you enable the "Automatically ... connect to the host so no proxy would get used. ...
    (microsoft.public.windowsxp.general)
  • Re: SAFE MODE,fopen, and chmod
    ... The files going into the users/ folder are created by the "apache" user. ... I have a free php hosting account with an account name 'sample'. ... The host is "running in SAFE MODE", where, it seems that for fopen, mkdir and many other functions, a check is done for the UID of the script-running process to be the same as the UID of each resource concernedand only if the UIDs match, is the function allowed to work successfully. ... The same script has in the prior lines created the directory ...
    (comp.lang.php)
  • Re: Scripting hosts backwards on my system
    ... the //H switch sets the default host which will be used when a script is ... Copyright Microsoft Corporation 1996-2001. ... even though CScript was long ago ...
    (microsoft.public.scripting.vbscript)
  • Re: need a script to reset the permissions on users home drives
    ... partition that host the users home drives and the terminal server ... xcacls.vbs from microsoft.com (or use the not fully bugfixed .exe file from ... one line before doing the script. ...
    (microsoft.public.windows.server.scripting)
  • RE: DNS mapping
    ... ...but now he wants to know if a certain host in a certain domain was ... an automated script that makes daily/regular checks to see if the host in ... Subject: DNS mapping ... Cenzic Hailstorm finds vulnerabilities fast. ...
    (Pen-Test)