News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

How to print content of directory?

Started by ben2ong2, October 01, 2006, 02:28:20 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ben2ong2

Here work around is to create a DOS batch file with command to print the dir content into your printer port (make sure you know what is your printer port, in general it is LPT1 but it could be USB001 if you have it connected to USB port, right click on the printer icon and go to port tab and figure this out first) and then creating a context menu access this batch functionality. All right here are the instructions: step 1:Open a text editor, such as Notepad, and type the following lines into a new document: (assuming the printer you wish to use is connected to printer port #1). CD %1 DIR >LPT1 Save the two-line file into your Windows\Command folder, and call it PRINTDIR.BAT. step 2:Find the file in Explorer, right click on it, and select Properties. Click on the Program tab, turn on the Close on Exit option, choose Minimized from the Run list, and click Ok. Next, run the Registry Editor (REGEDIT.EXE) by going to START-RUN and type regedit and navigate to [\HKEY_CLASSES_ROOT\Directory\shell]. Select New from the Edit menu, and then select Key. Type Print for the name of this new key, and press Enter. Highlight the new Print key, select New from the Edit menu, and then select Key again. Type command for the name of this new key, and press Enter. Double-click on the (default) value in the right pane, and type C:\Windows\Command\PRINTDIR.BAT (assuming that C:\Windows\ is your Windows folder). From now on, when you right-click on a folder icon, you can click Print to print its contents. Note: this assumes that your printer is connected to the LPT1 port, which is true for most users. However, if your printer is connected over a network or you have more than one printer, you need to change LPT1 to the correct port.
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login