Wednesday, April 8, 2020

Thinking about File Name Analysis

I'm not sure what I will do with this information, but I wanted to do some research.
https://ss64.com/nt/dir.html
https://janakiev.com/blog/python-filesystem-analysis
https://superuser.com/questions/570760/find-filenames-with-certain-pattern-on-windows-command-line

From https://www.windows-commandline.com/find-files-based-on-modified-time:

for /F "tokens=2" %i in ('date /t') do dir /T:C | findstr /C:%i /B

This command gets the list of all the files from the current folder that are created on the same day. You do not need to specify the date, the command automatically picks the current date.

You can add /s option to dir command to search in sub directories also. However, the file names will not have full path names, they are printed folder by folder. So you can make out which folder a file belongs to.

No comments: