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
:: 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 |
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
@echo off | |
setlocal enableDelayedExpansion | |
if not defined bin ( | |
:: set bin to current directory | |
set bin=%~dp0 | |
) | |
echo current dir %bin% |