- 1). Open Notepad. Click the "Start" button, then select "Programs" > "Accessories" > "Notepad."
- 2). Copy and paste code into Notepad. Copy the five lines of code below completely, then paste them into Notepad:
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit - 3). Save the code. Click "File" in the menu bar located at the top of the screen, then select "Save." Enter "Prin.bat" in the "File Name" field. Next, click the drop-down menu item reading "Text Documents (*.txt)" and select the "All Files" option. Ensure the file will be saved to your desktop, then click "Save."
- 4). Move the Prin.bat file to your Windows directory. Find the Prin.bat file you just created on your desktop. Right-click the icon and select "Cut," then double-click the icon labeled "My Computer" (or "Computer" in Windows Vista or Windows 7). Next, double-click the "C:" drive icon and the folder labeled "Windows." Right-click within the folder and select "Paste."
- 5). Add print functionality to Windows Explorer. In the "Windows" folder, select "File" from the menu at the top of the screen, then "Tools" and finally "Folder Options." Click the "File Types" tab in the dialog box, then click "File Folder." Next, click "Edit" and then "New." Type "Print Directory Listing" in the field labeled "Action." Click "Prin.bat" under "Application used to perform action," then click "OK." Close the remaining dialog boxes by clicking "OK" > "Apply" > "OK."
- 6). Print Windows Explorer directories. Locate a folder to print in Windows Explorer, then right-click the folder and notice the "Print Directory Listing" option. Click this option to print the directory's contents.
SHARE