如何制作一个 Windows 快捷方式,将 Powershell 打开到特定目录?
如目标:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
-noexit -command {cd c:/path/to/open}
但这只是将命令以文本形式输出。怎么办?
最佳答案
使用此命令。
powershell.exe -noexit -command "cd c:\temp"
-NoExit
:运行启动命令后不退出。
关于powershell - 从快捷方式打开特定目录中的 Powershell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14233659/