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 <wlfr...@ix.netcom.com>
wrote:

> On Wed, 25 Apr 2018 15:26:37 +0300, Ram Rachum <r...@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
>         wlfr...@ix.netcom.com    HTTP://wlfraed.home.netcom.com/
>
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
>
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to