[python-win32] Wait for process to be started

Ram Rachum ram at rachum.com
Wed Apr 25 09:50:38 EDT 2018


Awesome, looks like what I need is
wmi.WMI().Win32_Process.watch_for('creation', name='notepad.exe')

Thanks!

On Wed, Apr 25, 2018 at 4:27 PM, Dennis Lee Bieber <wlfraed at ix.netcom.com>
wrote:

> On Wed, 25 Apr 2018 15:26:37 +0300, Ram Rachum <ram at rachum.com> declaimed
> the following:
>
> >
> >I was told that the `wmi` module is the way to go, but does anyone know
> how
> >to make it do what I described above?
> >
>
>         And what have you searched on?
>
> https://bsmadhu.wordpress.com/2012/06/28/monitor-process-
> startupshutdown-using-wmi-powershell/
> (PowerShell and C# examples)
>
> http://timgolden.me.uk/python/wmi/tutorial.html (introduction to WMI
> module; with example that triggers on process startup -- though it triggers
> for ALL process starts, not just one by name)
>
>
> --
>         Wulfraed                 Dennis Lee Bieber         AF6VN
>         wlfraed at ix.netcom.com    HTTP://wlfraed.home.netcom.com/
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180425/0e3a4040/attachment.html>


More information about the python-win32 mailing list