阅读背景:

从.NET调用Powershell时设置启动目录?

来源:互联网 

I'm using the System.Management.Automation API to call PowerShell scripts a C# WPF app. In the following example, how would you change the start directory ($PWD) so it executes foo.ps1 from C:\scripts\ instead of the location of the .exe it was called from?I'm using the System.Management.Automation API




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: