Two ways to set Win7 to add a print directory

  
In the Windows 7 operating system, you can make this printing job easier with a little change. It takes a little time to implement this function, but if you often have to print the file, then you will find a lot of benefits. .
There are two different options to help you do this:
Method 1 provides a solution for all file directories in a one-time print folder; and Method 2 is a more long-lasting feature, directly at An option has been added to the right mouse button menu to do this.
First, let's see how the first method works.
The first thing you need to do is open the command prompt manager, then locate the folder or absolute path of the file directory you want to list, and then execute the following command: dir> contents.txt, then you will You can see that a file named “"contexts.txt” has been added to the file directory folder. Open this file and click Print. It is as simple as that.
The next step is to talk about the second method. The relative method is slightly more complicated.
First we need to create a Printdir.bat file. Create a new notepad to open, then paste the following into it.
@echo off
dir %1 /-p /o:gn > "%temp%\\Listing"
start /w notepad /p "%temp%\\Listing"
del "%temp%\\Listing"
exit
Then save the file as a file named "Printdir.bat", save the file to the C:\\Windows directory of the Windows system, to be implemented This step must ensure that you have administrator privileges at this time, otherwise you may not be able to access the Windows installation directory.
Next, open the "run" window in the windows7 start menu, enter “%APPDATA%\\MicROSoft\\Windows\\SendTo” hit enter. At this point you can open the folder and right click to create a new shortcut, enter “%windir%\\Printdir.bat” as the location of the project. Click Next to enter “Print Directory Listing"; name the shortcut.
After completing the above operation, you only need to right-click on the directory where you want to print a folder, then select “Send to ”, then select “Print Directory List”

Copyright © Windows knowledge All Rights Reserved