what's wrong with this loop
Posted: 05 Jun 2012 04:47
It should print all xml files
But starts with:
and ends with
the files are not ordered correctly (having diacritics inside)
I want to get just list of files (no extension) and write it into file.
Code: Select all
Setlocal EnableDelayedExpansion
@echo off
chcp 1250
FOR /f "delims=" %%x IN (delimiter.ini) DO set TAB=%%x
FOR %%F IN ('dir *.xml /b /o:n') DO (
set file=%%~nF
echo "!file!"
echo %tab%!file!>> files.txt
REM md "!file!"
)
pause
But starts with:
Code: Select all
'dir
and ends with
Code: Select all
b
o:n'
the files are not ordered correctly (having diacritics inside)
I want to get just list of files (no extension) and write it into file.