PowerShelling in your application

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


Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation

Comments closed

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.