FileLister is a command line program that lists files and their attributes in a text file.
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.
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 |