PowerShelling in your application
- Posted: Sep 28, 2009 at 5:42 AM
- 570 Views
If you have a PowerShell script that you need run from your application and didn't know quite how to accomplish the feat, Cody Batt has an example of doing this at DevX.
Cody goes in and talks about about calling PowerShell with a quick example of getting the running processes.
The process of being able to do this may make a few feel a bit uncomfortable since you need to manually go in and alter your project file in notepad and add in a reference to System.Management.Automation.
If you want to check out more about PowerShell, the following sites should help out: http://powershell.com/cs/ps/overview.aspx, http://thepowershellguy.com/blogs/posh/, http://blogs.msdn.com/powershell/.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?