I Ordnerstruktur haben:bat-Datei erhalten dir Pfad
Ordner "1", die "1.1" "1.2" "1.3" Ordner "1.1" enthält "1.1.1" "1.1.2"
Enthältin der Fledermaus-Datei:
cd %folderDir%
@echo off
call :treeProcess
goto :eos
:treeProcess
for /f "delims=" %%a IN ('dir /a:-d/b 2^>nul ') do echo "%%~fa" >>%pathDdfFile%
for /D %%d in (*) do (
echo %%d >>%pathDdfFile%
echo %%d
cd %%d
call :treeProcess
cd ..
)
goto :eof
:eos
cd \
ich:
1.1
1.1.1
1.1.2
1.2
1.3
aber ich brauche:
1.1
1.1\1.1.1
1.1\1.1.2
1.2
1.3
Vielen Dank! Es ist großartig – liraz