Re: killing a process by window title; was: socket application
by Dirk Bremer (NISC) other posts by this author
Jan 28 2003 10:43PM messages near this date
view in the new Beta List Site
Re: socket application
|
Re: killing a process by window title; was: socket application
----- Original Message -----
From: "Jonathan Epstein" <Jonathan_Epstein@[...].gov>
To: "Dirk Bremer (NISC)" <dirk.bremer@[...].cc> ; "perl-win32-users"
<perl-win32-users@[...].com>
Sent: Tuesday, January 28, 2003 15:53
Subject: killing a process by window title; was: socket application
> This seems like a useful starting point, courtesy of Dave Roth:
> http://www.roth.net/perl/scripts/scripts.asp?ProcList.pl
>
> In Python, I sometimes use one of the distribution scripts called
killProcName.py. Here's an excerpt which can probably be translated to Perl
without too much difficulty:
>
> handle = win32api.OpenProcess(win32con.PROCESS_TERMINATE,
0,pids[0])
> win32api.TerminateProcess(handle,0)
> win32api.CloseHandle(handle)
>
>
> I believe that it should be possible to synthesize these two pieces of
information and produce a solution.
One possible problem with using the methodology in the Dave Roth script is
that I want to be able to differentiate between the two different programs
on the remote machine that run as the same process name, i.e.:
1644) WinBatch.exe ( C:\Program Files\WinBatch\System\WinBatch.exe )
312) WinBatch.exe ( C:\Program Files\WinBatch\System\WinBatch.exe )
It would work better to be able to identify the process to be killed by its
window title and then some how kill it.
Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters
USA Central Time Zone
636-922-9158 ext. 8652 fax 636-447-4471
dirk.bremer@[...].cc
www.nisc.cc
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|