【发布时间】:2021-08-15 14:10:12
【问题描述】:
我有一个封装的 powershell 脚本,它运行一些类似这样的 powershell 脚本:
Start-Process PowerShell {-NoExit .\b.ps1}
Start-Process Powershell {-NoExit .\c.ps1}
Start-Process PowerShell {-NoExit .\d.ps1}
我使用 conemu 运行包装脚本,它会在选项卡中打开所有其他脚本。 有没有办法在新的 windows 终端中做同样的事情?
我在包装脚本中试过这个:
wt new-tab PowerShell -c .\a.ps1
wt new-tab PowerShell -c .\b.ps1
wt new-tab PowerShell -c .\c.ps1
它为每个窗口打开了单独的窗口,所有这些窗口都因找不到命令错误而出错。 还有其他方法吗?
【问题讨论】:
-
ISE 在不同的选项卡中打开多个会话。
标签: windows powershell windows-terminal