如何在VB.Net中运行Powershell脚本 [英] How to run Powershell scripts in VB.Net
问题描述
我需要在VB.Net中运行Exchange 2007 powershell脚本,但是我似乎找不到能够显示如何在加载模块时执行此操作的方法.
执行此操作的最佳方法是什么?
您可以在VB中运行Powershell脚本,请查看以下链接
上面发布的链接将带您逐步了解如何完成此操作.
查看与您的问题相关的问题: 在.NET Windows应用程序内运行powershell脚本
以下这篇文章是用C#语言编写的,但应该可以帮助您更好地理解该概念:
I need to run an Exchange 2007 powershell script in VB.Net, but I can't seem to find a method that shows how to do it with the module loaded.
What is the best method to do this?
You can run powershell scripts in VB, take a look at the following link
The link posted above takes you step by step on how to accomplish this.
Check out this question that relates to yours: Running powershell scripts from within a .NET windows app
This following article is in C# but should help you understand the concept a bit better:
http://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C
这篇关于如何在VB.Net中运行Powershell脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!