-
Headless Script - Call a script file with a headless terminal window
-
Call Powershell - Call a powershell script
Last active
November 12, 2022 14:13
-
-
Save daephx/78f5bd921e2efe68ce4b6c52aacfe39f to your computer and use it in GitHub Desktop.
[VBScript Examples] #Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set WshShell = CreateObject("WScript.Shell") | |
FilePath = WshShell.CurrentDirectory & "\script.bat" | |
WshShell.Run chr(34) & FilePath & Chr(34), 0 | |
Set WshShell = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set objShell = CreateObject("Wscript.shell") | |
objShell.run("powershell -Executionpolicy Bypass -noprofile -noninteractive -file .\script.ps1 -parameter Example") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment