Re: killing a process by window title; was: socket application
by Jonathan Epstein other posts by this author
Jan 28 2003 10:56PM messages near this date
view in the new Beta List Site
Re: killing a process by window title; was: socket application
|
inserting text into word with OLE
Here's some more info, digging a little deeper. First, there seems to be a "stealth" packag
e called IProcess, at:
http://idnopheq.perlmonk.org/perl/packages/x86/Win32/
I don't know exactly what it does, but usenet posting seem to imply that it has this functio
nality.
Then on CPAN, we have:
http://search.cpan.org/author/GSAR/libwin32-0.191/Process/Process.pm
and some others:
http://search.cpan.org/search?query=win32%3A%3Aprocess&mode=all
If I figure it out, I'll post here.
Jonathan
At 04:35 PM 1/28/2003 -0600, Dirk Bremer (NISC) wrote:
> ----- 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
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Dirk Bremer (NISC)
Jonathan Epstein
|