使PowerShell窗口消失
我制作了一个PowerShell备份脚本。我还为它制作了一个GUI。 现在,我希望GUI后面的PowerShell窗口在脚本执行期间消失 是否有一个简单的命令,或者如何实现它?使用-windowsstyle隐藏参数启动PowerShell,即:使PowerShell窗口消失,powershell,Powershell,我制作了一个PowerShell备份脚本。我还为它制作了一个GUI。 现在,我希望GUI后面的PowerShell窗口在脚本执行期间消失 是否有一个简单的命令,或者如何实现它?使用-windowsstyle隐藏参数启动PowerShell,即: powershell.exe -noprofile -windowstyle hidden -executionpolicy bypass -NonInteractive -file .\script.ps1
powershell.exe -noprofile -windowstyle hidden -executionpolicy bypass -NonInteractive -file .\script.ps1