Yes and "um...yeah" is the perfect solution for Yogesh123, the original poster's question?
I never said it did. If you don't know *censored* your talking about don't post. that is WHY I hadn't posted before- because I don't know a solution, until your post that has absolutely no information of value, in the same way that a person might respond to a post consisting of a copy-paste from Excel help.
The environmental variables and the CMD commands contain the file properties information Yogesh123 is seeking.
no. They don't. Last-Modified date, Modified time, file extension, attributes, size, path, name- of those, I would guess that the file extension, path, and name are easily available... Oh, and with /t you can get the accessed/modified/created dates. and size.... hey wait a second, you can get all of this info from cmd... But that doesn't change the fact that showing a copy-paste from cmd of you setting and echoing environment variables and listing them is irrelevant.
Also, it can be tricky to parse the exact wanted field from dir, especially given localization concerns. That being said although your original post was a tad odd the concept you then fleshed out was not off the mark at all.