Opening PowerShell Script and hide Command Prompt, but not the GUI

后端 未结 4 2164
深忆病人
深忆病人 2020-12-11 06:54

I currently open my PowerShell script through a .bat file. The script has a GUI. I tried to put this in my script but it hid the GUI as well and also kept looping because I

4条回答
  •  我在风中等你
    2020-12-11 07:34

    In the solution proposed posted in a comment (*

    Put it in a shortcut instead of in a batch file. Right click a blank spot on desktop or in a folder window, New, Shortcut, paste your line in, Next, name it, Finish

    *.) to hide definitely the Command Prompt, I set, in the properties of the shortcut Run=minimized in General.

提交回复
热议问题