Skip to content

Instantly share code, notes, and snippets.

@davidruhmann
davidruhmann / Hybrid.bat
Last active November 22, 2022 01:16
[Batch] JScript and Batch Hybrid
@if (@CodeSection == @Batch) @then
:: The first line above is...
:: in Batch, a valid IF command that does nothing.
:: in JScript, a conditional compilation IF statement that is false.
:: So the following section is omitted until the next "[at]end".
:: Note: the "[at]then" does nothing and is only for readablility.
:: Batch Section