Search found 1 match

by BABUT
06 Jan 2024 02:11
Forum: DOS Batch Forum
Topic: to dir or not to dir
Replies: 1
Views: 8036

to dir or not to dir

set Dir?=for /l %%# in (1 1 2) do if %%#==2 (for /f "tokens=*" %%# in (!in!) do if not "%%~a#"=="d----------" color 11) else setlocal enabledelayedexpansion ^& set in= example: %Dir?%"c:\windows" if %errorlevel%==0 (echo dir) else (echo file) it works through symbolic links(everything you can googl...