Create file management directory based on Excel

Background : When a large number of files are stored in a folder, it will become very difficult to find a specific file or perform other management on the file.

Functions : 1. Form all files in the folder into a file directory;

   2. Generate hyperlinks for each file, you can directly click to open the corresponding file.


 

1. Create a bat batch file

First , create a txt file and modify the suffix to .bat, as shown below:

Then , enter the following code in the created bat file (right click → edit to enter):

dir *. * / B> file directory.csv

Close the file after saving, double-click the file to compile and run the input code, and automatically generate a CSV file named "file directory".

This file contains all file directory information in the folder.

Finally , save the generated CSV file as xlsx format file.

 

2. Add a hyperlink

Add a hyperlink in the corresponding cell after the file name to realize the direct click to open the corresponding file, as follows:

= HYPERLINK ("E: \ test \" & A1, "click to open")


 

to sum up:

Through the above steps, you can successfully create an Excel-based file management directory.

Whether it is daily life or a large number of files at work, you can effectively manage based on this file management directory.

In addition, you can also use Excel's search and other functions to quickly search for specific files, which is very convenient!

 

Guess you like

Origin www.cnblogs.com/yangmi511/p/12736395.html