2012-08-02 217 views
3

我需要在VB.Net中運行Exchange 2007 powershell腳本,但似乎無法找到顯示如何在加載模塊時執行此操作的方法。如何在VB.Net中運行Powershell腳本

這樣做的最佳方法是什麼?

+0

這個問題可能會得到你開始了:http://stackoverflow.com/questions/10617651/powershell-via-vb-net-which-method-and-why – 2012-08-02 17:45:16

回答

5

可以在VB運行PowerShell腳本,來看看下面的鏈接

http://blogs.msdn.com/b/zainnab/archive/2008/07/26/calling-a-powershell-script-from-your-net-code.aspx

的聯繫張貼以上需要你一步就如何完成這一步。

退房這個問題,涉及到你的: Running powershell scripts from within a .NET windows app

這下面的文章是在C#中,但應該幫助你理解這個概念好一點:

http://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C

相關問題