Windows默认shell和路径未找到

时间:2015-04-01 10:06:11

标签: c# python windows shell path

我已经使用我的应用程序更改了Windows默认shell,并且每件事都可以。 我的应用是在c#中,我需要运行一些外部python脚本,这是错误,因为找不到Path变量。

我已尝试为已启动的流程设置路径:

  process.StartInfo.EnvironmentVariables["PATH"] = "c:\\Python27;c:\\Python27\\Scripts";

这只是工作。

问题是没有加载PATH变量,因为我已经更改了默认的Windows shell,因此找到了explorer.exe。

谢谢。

0 个答案:

没有答案