Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Created June 6, 2020 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackjutsu/acf336f31e12f43f57ff55dd2d1352af to your computer and use it in GitHub Desktop.
Save hackjutsu/acf336f31e12f43f57ff55dd2d1352af to your computer and use it in GitHub Desktop.
[test scirpt for batch]
@ECHO OFF
for /l %%a IN (4,-1,0) do (
echo.%%a: First command in block
echo. Second command in block
)
echo.
if exist "c:\windows" (
echo.The c:\windows directory exist.
set "IsWin=YES"
) ELSE (
set "IsWin=NO"
)
echo.Is this a windows pc? %IsWin%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment