.bat to iterate through files and extract the first 10 characters from its name.
setlocal ENABLEDELAYEDEXPANSION
for %%f in (posts/*) do (
set var=%%f
@echo %var:~0,10%
)
.bat to iterate through files and extract the first 10 characters from its name.
setlocal ENABLEDELAYEDEXPANSION
for %%f in (posts/*) do (
set var=%%f
@echo %var:~0,10%
)