header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

We have a new sponsor!  Introducting Pragma Systems.  See the home page for details.

Handle Process display and CTRL+C events from a UI prospective
Last Post 24 Jan 2009 02:31 AM by zhu_coder. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
zhu_coderUser is Offline
New Member
New Member
Posts:3
Avatar

--
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!
PoshoholicUser is Offline
PowerShell MVP
New Member
New Member
Posts:94
Avatar

--
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_coderUser is Offline
New Member
New Member
Posts:3
Avatar

--
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.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 footer
footer