Teach you to add a print directory in Windows 7

  

May 25 The high performance and high efficiency of Microsoft Windows 7 not only won wide acclaim from ordinary users, but also been widely recognized by many office workers. Sometimes you will find that when you need to print all the file directories in a folder, it is more troublesome to operate, and the text teaches you a trick. 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 one provides a solution for printing all the file directories of the folder at one time; and method two is a more long-lasting function, adding an option directly to the right mouse button menu to perform this operation.

Let's first take a look at how the first method works. The first thing you need to do is open the command prompt manager, then navigate to the folder or absolute path of the file directory you want to list, then execute the following command: dir> contents.txt, then you will see 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.

Next, let's talk about the second method. The relative method is a bit 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 it as a text file named "Printdir.bat" and save the file to C:\\Windows in the Windows installation directory. To achieve this step you 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 (RUN) window" in the windows7 start menu, type "%APPDATA%\\Microsoft\\Windows\\SendTo" and 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 type "Print Directory Listing" to name the shortcut.

After completing the above operation, now you want to print a folder of the directory just right click, then select "send to", then select "print directory list" to get it!

Copyright © Windows knowledge All Rights Reserved