Re: killing a process by window title; was: socket application
by Dirk Bremer (NISC) other posts by this author
Jan 28 2003 10:35PM messages near this date
view in the new Beta List Site
Re: killing a process by window title; was: 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.
All right, I'll admit it , I don't know zip about the Win32 API or OLE. This
is all-new territory for me. I think the Dave Roth script example will be
useful in identifying the processes, but I still need a methodology to kill
them. Anyone want to take a stab at translating the Python to Perl?
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
Thread:
Dirk Bremer (NISC)
Jonathan Epstein
|