How To Add a "Print Directory" Feature for Folders in Windows XP
To complete this Task , you need to go through 3 process
First process
Create the Printdir.bat File
Step1
Open notepad, then click OK. Type in the following text into Notepad
@echo off
dir %1 /-p /ogn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing" exit
On the File menu, click Exit, and then click Yes to save the changes. In the Save As dialog box, type %windir%\Printdir.bat , and then click Save.

Second Process
Create a New Action for File Folders
Step1
Click Start, click Control Panel (or, point to Settings, and then click Control Panel), and then click Folder Options.

Step2
On the File Types tab, click File Folder. Click Advanced, and then click New.

Step3
In the Action box, type Print Directory Listing. In the Application used to perform action box, type printdir.bat, and then click OK.

Third Process
Step1
Start Registry Editor (Regedt32.exe).Locate the Default value under the following key in the registry HKEY_CLASSES_ROOT\Directory\shell

Step2
Right Click on the default value. Type none in the Value data box, and then click OK. Quit Registry Editor.