Skip to content

Commit 6370984

Browse files
committed
Hidden black flash windows / Close HTA windows
1 parent 601131c commit 6370984

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data/templates/scripts/to_powershell.hta.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Set %{var_shell} = CreateObject("Wscript.Shell")
33
Set %{var_fso} = CreateObject("Scripting.FileSystemObject")
44
If %{var_fso}.FileExists(%{var_shell}.ExpandEnvironmentStrings("%%PSModulePath%%") + "..\powershell.exe") Then
5-
%{var_shell}.Run "%{powershell}"
5+
%{var_shell}.Run "%{powershell}",0
66
End If
7+
window.close()
78
</script>

0 commit comments

Comments
 (0)