Mình tìm được rồi hehe. Up lên cho bạn nào chưa biCó 2 cách:
Cách 1:
Dùng
cmd để trích xuất tên file ra file
.txt sau đó
import vào
Excel.
To list the files in a particular directory, add the directory name after the drive:
Mình ngại dịch, các bạn đọc tiếng Anh tạm nha

cũng dễ hiểu thôi.
dir d:\my files\
The file names will be listed in the window. Usually, you'll want these files to be sent to a file. To redirect the output to a file, use the > character and specify a file name. For example, to send the file names to a text file named filelist.txt in the root directory of drive C, use this command:
dir d:\ >c:\filelist.txt
If you would like the file list to include the files in all subdirectories of drive D, use the /s switch:
dir d:\ /s >c:\filelist.txt
The directory listing will contain lots of additional information. To get the file names only (bare format), use the /b switch:
dir d:\ /s /b >c:\filelist.txt
To find out about other options available for the DIR command (such as including file dates and times), type this command:
dir /?
Nguồn: spreadsheetpage.com
Cách 2:
Dùng chương trình của Excel:
Khởi động file xong, ấn vào
Add in trên tool bả, trong đó có nút "Search for files and folders", bấm vào và tự nghiên cứu nhé.
https://www.mediafire.com/?v9zrlr59yamiars File mình up có cả bản 2003 và 2007 trở lên kèm video hướng dẫn.
Nguồn ndu96081631 tại giaiphapexcel