PowerShelling in your application
- Posted: Sep 28, 2009 at 5:42 AM
- 602 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/.