msm*_*886 62 powershell powershell-2.0
我正在编写一个脚本,使用多个plink(PuTTY)会话作为clustersh的Windows版本.我被困了,因为我想从powershell打开多个Powershell窗口.当我为powershell键入命令时,它会打开一个新会话.这类似于在bash中键入bash.我想打开多个物理窗口.
我试过-windowstyle以及其他args无济于事.我想知道你是否有办法知道.我非常感谢你的帮助.我看了,在这里找不到任何东西.谢谢你的时间.
And*_*ndi 134
这将打开一个新窗口.
或者:
start-process powershell
Run Code Online (Sandbox Code Playgroud)
要么:
start powershell
Run Code Online (Sandbox Code Playgroud)
EBG*_*een 18
这样做:
Invoke-Item C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Run Code Online (Sandbox Code Playgroud)
jef*_*i13 16
如果您尝试打开新窗口并启动新脚本:
start powershell {.\scriptInNewPSWindow.ps1}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
49986 次 |
| 最近记录: |