right mouse button How to quickly generate directory listings

Source: Internet
Author: User
Tags resource

Make a list of music in a music folder save or share a show for your friends, and keep a list of the various categories of documents you have collected for future reference, which are our actual needs. However, the way we've seen it before is often too cumbersome to generate lists. So, can not use the power of a third party to create a once and for all right key command, just right click on the folder can be the file list in a file to save it?

Tips: Common File list generation methods and their drawbacks

1. Use the command Prompt window to execute the dir command or tree to generate a file list. The disadvantage is that the operation is more cumbersome.

2. Use a resource manager or plug-in that is generated with a command. The disadvantage is that you need to install a Third-party manager or plug-in.

3. Build with a dedicated tool software. The disadvantage is that you need to install specialized software.

By automatically modifying the Windows registry through a reg file, adding a command to generate a list of files for the resource manager is the most convenient and practical solution. This scenario, although it requires a bit of labor at the start of the build, once the file has been built, only once in the system, can be used permanently, is once and for all.

To implement the option of adding a "Generate file list" to the folder right-click menu, simply write a plain text file with a text editor with the extension reg, such as List generation. Reg, and then execute the file.

"List generation. Reg" contains only the following four lines of code (Figure 1):

Windows Registry Editor Version 5.00

[Hkey_classes_rootfoldershell generation file list]

[Hkey_classes_rootfoldershell generate file List command]

@= ' c:\windows\system32\cmd.exe/c DIR '%1 '/b/on> '%1 '. TXT ""

Small tip:

This method is applicable in various WINODWS versions that are currently in transit. The/on in the above argument indicates that the list is generated by file name sorting. By modifying the parameter/on to other parameters, you can achieve a change in the way the list of files is sorted. If/os is sorted by size,/oe is sorted by extension,/od is sorted for file dates. If you want to include all levels of subdirectories, you need the plus/s parameter.

When executing this reg file, the system will have the information source confirmation prompt, because there is no problem with the source, so click "Yes" to release (Figure 2). If you import the registry successfully, the system will have a successful import prompt. Click "OK".

To right-click a folder in System Explorer, the Generate file List command appears (Figure 3). Executing the right key command generates a TXT list file with the same name as the folder at the same location as the destination folder, listing the list of files under that folder.

Small tip:

If the installation of antivirus software prompts suspicious items during the execution of Reg, it needs to be released.

Extended reading:

The method of generating a file list is also useful for the generation of Private directory or folder tools Treecopy, Printfolder Pro, etc., generated using the additional functionality ACDSee by the diagram software, with the dedicated commands of total Commander or Xplorer2 Pro File Manager.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.