Tree instead of dir output to txt, check the code in .bat file. Also supports all characters, so there are no weird signs for unknown letters or symbols.
List directory and subdirectory files
pre requisites : Print to PDF file enabled
Put dirlist.bat in Windows\system32 folder Add .reg file to registry to enable right click in explorer to list all files in both directory and all subdirectories