Why in the cycle is not assigned to the variable "tes" the value of the variable cycle - %% i ?
for /f "tokens=*" %%i in ('dir /B') do ( SET tes="%%i" // не присваивает echo %tes% // Ничего не выводит... )
And how can you generally change the variable %% i in a loop, like for example with the others:
%var:~0,3%
In general, here is the whole debugging code that does not work all for the same reason:
cd C:\Users\%USERNAME%\Desktop color 0a chcp 65001 cls ECHO OFF for /f "tokens=*" %%i in ('dir /B') do ( SET tes="!i!" echo %tes% ) pause
!переменных!
? - karmadro4