【发布时间】:2023-04-09 17:33:02
【问题描述】:
我有一个看起来像这样的 powershell.exe 调用,它可以在我的命令行中运行:
powershell.exe -noexit -command " & 'C:\Test\test.ps1' "
但是,当我在当前用户的 runonce-key 中完全以这种方式输入该条目时,什么也没有发生。
从runonce或run调用powershell.exe传参的正确方法是什么?
【问题讨论】:
标签: powershell windows-7 runonce