Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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
User interface 如何在执行powershell脚本时不显示背景窗口_User Interface_Powershell_Executable - Fatal编程技术网

User interface 如何在执行powershell脚本时不显示背景窗口

User interface 如何在执行powershell脚本时不显示背景窗口,user-interface,powershell,executable,User Interface,Powershell,Executable,每当我执行gui powershell脚本时,除了gui表单之外,还会出现后台窗口(命令窗口);如何消除这种情况,我应该以任何不同的方式执行脚本吗 ->如果有任何与此相关的其他问题,请务必告诉我。尝试创建一个使用-windowstyle参数调用脚本的快捷方式: powershell.exe -sta -WindowStyle Hidden ".\myGUIscript.ps1" 这将运行powershell控制台,然后关闭它,但让GUI继续他的工作

每当我执行gui powershell脚本时,除了gui表单之外,还会出现后台窗口(命令窗口);如何消除这种情况,我应该以任何不同的方式执行脚本吗


->如果有任何与此相关的其他问题,请务必告诉我。

尝试创建一个使用
-windowstyle
参数调用脚本的快捷方式:

powershell.exe -sta -WindowStyle Hidden ".\myGUIscript.ps1"
这将运行powershell控制台,然后关闭它,但让GUI继续他的工作