I am working on a System Tray Application that i am developing in PowerShell Studio. I would like to execute some cleanup code if someone clicks on the exit menu item. I was hoping i might be able to do it with a powershell.exiting event, but that event doesn't appear to fire.
Any advice on that?
System Tray Application
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
-
- Posts: 1
- Last visit: Wed May 12, 2021 5:32 am