2015-04-20 23:19:54 +01:00
|
|
|
<script language="VBScript">
|
2017-04-26 11:01:59 +08:00
|
|
|
window.moveTo -4000, -4000
|
|
|
|
|
Set %{var_shell} = CreateObject("Wscript.Shell")
|
2015-05-15 11:48:21 -05:00
|
|
|
Set %{var_fso} = CreateObject("Scripting.FileSystemObject")
|
2017-04-19 11:22:38 -04:00
|
|
|
For each path in Split(%{var_shell}.ExpandEnvironmentStrings("%%PSModulePath%%"),";")
|
|
|
|
|
If %{var_fso}.FileExists(path + "\..\powershell.exe") Then
|
2017-08-20 17:43:56 -05:00
|
|
|
%{var_shell}.Run "%{powershell}",0
|
2017-04-19 11:22:38 -04:00
|
|
|
Exit For
|
|
|
|
|
End If
|
|
|
|
|
Next
|
2017-04-16 22:53:17 -05:00
|
|
|
window.close()
|
2015-04-20 23:19:54 +01:00
|
|
|
</script>
|