May 18, 2011 8:00 AM Subscribe
Help me write a batch file to print directory information.
posted by MechEng to computers & internet (6 answers total) 1 user marked this as a favorite
I found this http://www.watchingthenet.com/how-to-print-a-directory-tree-from-windows-explorer.html
which physically prints the folder / file information but how do edit this code to save to notepad / future use in excel
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
output colunms for all sub folders
[folder path][file name with extension][folder name]
The use of third party software is out of the question.