Varset is a lightweight utility to be executed under an MSDOS environment (or on the Windows command line) whose syntax, for example, to obtain the date is as follows: call var set FD = date of filename.txt
From Varset you will be able to obtain varied information of the files that you pass by parameters: date and time, directory where they are located, total number of files in a directory, size of each, number of lines that each file contains, name of the volume of the unit , extension, full name of the file path, etc.
You can also, from Varset, obtain a substring of the original string that you provide (simply indicate the position and size of that substring). Varset is totally free.
You can free download Varset 32, 64 bit and safe install the latest trial or new full version for Windows 10 from the official site.