Register
: :
Login
Home
Forums
Blogs
Podcast
Directories
Scripts
Downloads
Community
User Group Support
Learning Resources
We have a new sponsor! Introducting
Pragma Systems
. See the home page for details.
Unanswered
Active Topics
Forums
Search
Members
Forums
>
PowerShell Development
>
Cmdlet Development
Handle Process display and CTRL+C events from a UI prospective
Last Post 24 Jan 2009 02:31 AM by
zhu_coder
. 2 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
zhu_coder
New Member
Posts:3
23 Jan 2009 04:36 AM
Hi coders!
I'm new to PS and love it!!!
Recently, I've created some PSSnapin ( in C#) that use progress bars and even subscribe to the user's ctrl+c event (cancel) and perform some cleanup tasks.
Now I'd like to build an MMC app on top of these snapins.
Please give me ideas on how to handle the progress display and CTRL+C in the UI. In other words, how how can I translate what's done by the cmdlets in a console environment, to the UI? any other event to subscribe to in order to make the bridge Console and UI?
Thanks in advance for your comments/suggestions and happy coding!
Poshoholic
PowerShell MVP
New Member
Posts:94
23 Jan 2009 03:50 PM
You might want to take a look at PowerGUI (http://powergui.org). It provides an MMC-like administrative console where every node, link and action is powered by a PowerShell script. If you use that tool to create a set of nodes, links and actions, you can then export that collection as a PowerPack and share it with the community.
Regarding progress, are you using the Write-Progress cmdlet inside your snapin? PowerGUI doesn't support Write-Progress at the moment, but if this is a feature that is important to you and you want to save yourself the effort of having to create your own MMC snapin from scratch, voice your opinion on the PowerGUI Forums. The features in PowerGUI are primarily driven by community feedback, so if something you want isn't there, say so on the forums (also on http://powergui.org).
It sounds like PowerGUI might be what you are looking for (with the addition of Write-Progress support).
--
Kirk Munro [MVP]
Poshoholic
http://poshoholic.com
Kirk Munro [
MVP
]
Poshoholic
My blog:
http://poshoholic.com
Follow me on Twitter:
http://twitter.com/poshoholic
zhu_coder
New Member
Posts:3
24 Jan 2009 02:31 AM
Thanks for the leads! Pretty cool, I have to admit. Will spend some time with PowerGUI [and the forums] and get back to us pretty soon! Thanks again and may the Force be in your code! :)
You are not authorized to post a reply.
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
Forums
>
PowerShell Development
>
Cmdlet Development
Active Forums 4.1
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008