I have a folder of media files that are about 1TB big. I want to save the file names and directory structure to a text file for backup and reference. I want to attach a batc
You can use the built in tree.com utility:
tree c:\folder /F
There's also a PowerShell function, Show-Tree, in PSCX 2.0:
http://rkeithhill.wordpress.com/2010/05/10/pscx-2-0-show-tree/
To just save the directory structure and file names:
get-childitem <dir> -recurse | select -expand fullname > dirtree.txt
Open powershell in the folder then run this to show the files tree in your powershell:
tree /a /f
or save it as txt file:
tree /a /f > tree.txt
a pure dir solution
dir /b /s c:\folder >foldertree.txt
has the advantages over Shay and mjolinor solutions that