Skip to content

Instantly share code, notes, and snippets.

@LuckyTeng
Last active September 8, 2018 00:52
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 LuckyTeng/56f4519cf5c2258dc181af0fe55d6baa to your computer and use it in GitHub Desktop.
Save LuckyTeng/56f4519cf5c2258dc181af0fe55d6baa to your computer and use it in GitHub Desktop.
list all path
:: list path in set for human readable
@echo off
setlocal
set a=1
:LOOP
for /f "delims=;, tokens=%a%" %%i in ("%path%") do if "%%i" neq "" (
echo %%i
set /a a=a+1
GOTO :LOOP
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment