Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/131.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使PowerShell窗口消失_Powershell - Fatal编程技术网

使PowerShell窗口消失

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

我制作了一个PowerShell备份脚本。我还为它制作了一个GUI。 现在,我希望GUI后面的PowerShell窗口在脚本执行期间消失

是否有一个简单的命令,或者如何实现它?

使用-windowsstyle隐藏参数启动PowerShell,即:

powershell.exe -noprofile -windowstyle hidden -executionpolicy bypass -NonInteractive -file .\script.ps1