且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

powershell - 如何检查成绩单是否正在运行?

更新时间:2023-12-05 11:06:28

在你的 powershell 脚本的开头添加一个空的 try-catch 块来停止转录怎么样?

What about an empty try-catch block at the beginning of your powershell script to stop transcribing?

try{
  stop-transcript|out-null
}
catch [System.InvalidOperationException]{}