Stop Powershell from exiting

后端 未结 8 1879
傲寒
傲寒 2021-02-05 06:01

I know that there is that little -noexit switch for PowerShell.

Is there anyway of staying in the shell without using that switch?

In other words, I

相关标签:
8条回答
  • 2021-02-05 06:54
    "do stuff"
    Pause
    

    Yes, just like commandline -- output:

    do stuff
    Press Enter to continue...:
    
    0 讨论(0)
  • 2021-02-05 06:56

    Like this?

    PowerShell -File  c:\myscript.ps1 -NoExit
    
    0 讨论(0)
提交回复
热议问题