@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit
Save the file as [color#880000]Print.bat[/color] in the Windows directory (or WINNT).
Under Windows Explorer, go to Tools, Folder Options, File Types tab, and choose File Folder. (you have to scroll down to N/A)
Click Advanced, and then New.
In the Action box, type Directory Listing.
In the Application used to perform action box, type Print.bat, click OK. Click OK, OK, Close.
In Windows Explorer, right-click the folder that you would like to print a directory listing of, and then click Directory Listing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.