Skip to content

Instantly share code, notes, and snippets.

@LuckyTeng
LuckyTeng / list_set.bat
Last active September 8, 2018 00:52
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
@LuckyTeng
LuckyTeng / check_verbs.bat
Created September 8, 2018 00:47
check_verbs
@echo off
setlocal enableDelayedExpansion
if not defined bin (
:: set bin to current directory
set bin=%~dp0
)
echo current dir %bin%