Last active
October 29, 2019 02:03
-
-
Save I-Otsuki/bcce6e7a738226f18cbd488b681b3577 to your computer and use it in GitHub Desktop.
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
@setlocal | |
@pushd "%~dp0" | |
@set ExtractedFile=%Temp%\%~n0.ps1 | |
@findstr /B /V @ "%~f0" > "%ExtractedFile%" | |
@powershell -NoLogo -NonInteractive -File "%ExtractedFile%" -ExecutionPolicy Bypass | |
@timeout 1 > nul 2>&1 | |
@del "%ExtractedFile%" | |
@popd | |
@endlocal | |
@exit /B 0 | |
# PowerShell code begins here. | |
Write-Output "Hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment