标签: javascript path environment-variables
我有一个包含
exec("powershell ..")
但这给了我错误
错误:“ powershell”未被识别为内部或外部命令,
我的PATH环境变量包括%SYSTEMROOT%\ System32 \ WindowsPowerShell \ v1.0 \,这是Powershell的正确路径,我可以从cmd行执行Powershell
那么为什么不能从Javascript中找到它呢?