我有一个程序,我通常在 powershell 中这样开始:
.\storage\bin\storage.exe -f storage\conf\storage.conf
在后台调用它的正确语法是什么?我尝试了许多组合,例如:
start-job -scriptblock{".\storage\bin\storage.exe -f storage\conf\storage.conf"}
start-job -scriptblock{.\storage\bin\storage.exe} -argumentlist "-f", "storage\conf\storage.conf"
但没有成功。它还应该在 powershell 脚本中运行。