Last active
July 18, 2020 03:52
-
-
Save shibafu528/24d59e1acb17f11b658e9f9bc1f59fec to your computer and use it in GitHub Desktop.
Powershellをbatに埋めこむテクニック。引用元が消えてたのでバックアップ。
This file contains hidden or 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
@powershell -NoProfile -ExecutionPolicy Unrestricted "$s=[scriptblock]::create((gc \"%~f0\"|?{$_.readcount -gt 1})-join\"`n\");&$s" %*&goto:eof | |
Write-Host "Hello, World!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment