To create the Printdir.bat file, follow these steps:
1. Click Start, click Run, type the following command, and then click OK:
notepad
2. Paste the following text into Notepad:
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit
3. On the File menu, click Exit, and then click Yes to save the changes.
4. In the Save As dialog box, type the following text, and then click Save:
%windir%\Printdir.bat
Create a new action for file folders
1. Click Start, click Control Panel (or, point to Settings, and then click Control Panel), and then click Folder Options.
2. On the File Types tab, click File Folder.
3. Click Advanced, and then click New.
4. In the Action box, type
Print Directory Listing
5. In the Application used to perform action box, type:
: printdir.bat
6. Click OK.
7. Click OK, click OK, and then click Close.