Upgrade the structure of all files in current folder (including sub-folders and sub-sub-folders…) by one level
for /r %x in (*.*) do move "%x" "%x"/../..
Get all file names (absolute paths) in current folder to txt
Get all file names
Dir /b *.* > list.txt
Get all file full paths
Dir /s /b *.* > list.txt