powershell 远程执行bat脚本,去启动一个应用,如何让应用一直运行,powershell能正常退出?

2025-03-24 04:51:10
推荐回答(2个)
回答1:

start “.\4511_start.bat"
这样执行就会以新窗口运行bat脚本,而不再占用powershell

回答2:

powershell里不需要echo
"start cmd" >>2.bat
这样就可以了