【发布时间】:2020-11-24 23:20:03
【问题描述】:
我正在尝试编写一个简单的 PowerShell 脚本来部署 Visual Studio ASPNET Core 1 项目。
目前,我可以在批处理文件中说
Path=.\node_modules\.bin;%AppData%\npm;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
这将在会话期间修改路径变量......在我的一生中,我无法弄清楚如何在 powershell 中做这个简单的事情。
有人可以帮我把它翻译成 powershell 吗?
TIA!
【问题讨论】:
-
感谢 Simon,这是 google 搜索“powershell add to path temporary”时第一次点击!
标签: powershell