Catalog · How the catalog works
FileLister
Lists files in a given folder (and subfolders).
- ★ 1 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
FileLister
FileLister is a command line program that lists files and their attributes in a text file.
Usage
Drag a folder onto the batch file "DragFolderHere.bat" to list the files in that folder (including those in subfolders).
The batch file must contain the following line:
FileLister.exe "%1" "<text file>" "<list format>"Add -e to the end to exclude subfolders.
List format
The list format can contain any text you want, with hashtags that are replaced with file-specific information.
| Hashtag | Example | Meaning |
|---|
#name | file.exe | File name
#ext | exe | File extension
#folder | subfolder\subsubfolder\ | Subfolder path (excluding main folder)
#basefolder | C:\folder\ | Main folder path
#drive | C:\ | Drive letter
#size | 12345 | File size in bytes
#date | 2020-01-01 | Date last modified
#created | 2005-01-01 | Creation date
#sha1 | | SHA-1
#md5 | | MD5
#crc32 | | CRC32
#percent | % | Using this character directly breaks the batch file
#qm
#quote | " | Using this character directly breaks the batch file
## | # | Hash symbol without invoking another hashtag

