簡體   English   中英

如何從批處理文件啟動Powershell命令行並強制其保持打開狀態?

[英]How I can I start a powershell command line from a batch file and enforce it to stay open?

我如何從批處理文件啟動Powershell會話,以便它啟動Powershell命令行 (並導入一些模塊,然后)保持打開狀態,而不是在bat中運行命令后將其關閉。 這樣我就可以繼續使用導入的模塊在PS Shell命令行上工作。

謝謝

你可以試試看。

-noexit將停止powershell終止。

start powershell.exe -noexit

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM