Open notepad and add the following content:
dir %1 /-p /o:gn > “%temp%Listing”
start /w notepad /p “%temp%Listing”
Now, save the file as printdir.bat in your windows directory
Make sure it is saved as a bat file and not a text file!
Open My Computer and choose tools, folder options
Select the File Types TAB
In the File Types column select the item called File Folder
Click on the advanced button, then new
Under action type Print Directory Listing
Now, browse and select printdir.bat in your windows directory and click OK
From now on, when you right click with your mouse on a folder in WinXP you will be able to print the directory contents.