\document { \section { \paragraph { Hello, World! } } }
set MDDDLfile=dirlist.mdddl echo \document{\section{ >%MDDDLfile% for /F %%f in ('dir/b') do echo \paragraph{%%f} >>%MDDDLfile% echo }} >>%MDDDLfile%