gpt4 book ai didi

powershell - 如何在发生某些外部事件之前暂停 Powershell 脚本?

转载 作者:行者123 更新时间:2023-12-01 00:03:41 24 4
gpt4 key购买 nike

我正在使用 Powershell 1 脚本来启动 Python 程序,然后我想暂停 Powershell,直到 Python 完成其工作。 (我拥有 Python 文件的完全所有权。)解决此问题的最佳方法是什么?

最佳答案

查看Wait-Process cmdlet 上的帮助:

man Wait-Process -full
start-process notepad -PassThru | Wait-Process

关于powershell - 如何在发生某些外部事件之前暂停 Powershell 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2364866/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com