Aşağıdaki kodun tam olarak nasıl çalıştığını tam olarak açıklayan herhangi biri olabilir mi? Gerçekten kayboldum. FOR komutunu nasıl kullanacağımı öğrenmeye çalışıyorum ama bunu anlamıyorum.Batch dosyası FOR/f tokenler
@echo off
for /f "tokens=* delims= " %%f in (myfile) do (
set line=%%f
call :processToken
)
goto :eof
:processToken
for /f "tokens=1* delims=/" %%a in ("%line%") do (
echo Got one token: %%a
set line=%%b
)
if not "%line%" == "" goto :processToken
goto :eof
+1, Ancak ilk "FOR/F" tokens = * delims = "' – jeb
satırındaki tüm önde gelen alanları kaldırır. Teşekkürler, düzenledim :-) – Joey