How to set the file time attributes by name?

There are files of the form:
where the 1st part - the year, month, day;
2nd is the ordinal number and the letter "v";
3-I - hours, minutes, seconds.

Is there any programmulina, utility, etc. to automatically set the file time attributes according to the info from the file name?
Currently manually doing via TotalCommander (upd. found Attribute Changer is easier than TC, but essentially the same).
March 20th 20 at 11:27
1 answer
March 20th 20 at 11:29
If you can't program, then the most affordable way for you is to make a complete list of files and create a list of commands for each file using, for example, Excel and any search and replace using regular expressions, for example Notepad++.
For example, from the command line you can get the list of files in a folder, where each line contains the path to the file of the form:

Next, you can (for example using Notepad++ and replace regular expressions, folding of the substring of the file name in a numbered capture group), to convert existing file types:
(Get-Item "c:\video\19950313_001v_123544.mkv").LastWriteTime=("13 03 1995 12:35:44")

Then you have to replace the ordinal numbers of the months, titles (03 for March, for example).
Then you just have to run the command in PowerShell and get the desired result.
Don't really understand Excel and/or Notepad+ can directly work with file attributes?
In Excel, if possible, via VB? Then by :), don't even know him.
In NP+ search and replace only on the most content of the file, isn't it? - Elton commented on March 20th 20 at 11:32
@tristin69, no, they don't know how to work with attributes. But you can using row operations, transform the list of files in the list of commands for each file from the list. - brenna commented on March 20th 20 at 11:35
@tristin69, supplemented the answer with a more detailed explanation. - brenna commented on March 20th 20 at 11:38
@jeramie, thank you, now get the idea.
I think that's about the only way to automate the means at hand. - Elton commented on March 20th 20 at 11:41
@tristin69, Yes, I did such things very often do, because writing a full script longer than one times to save the file list to a text file and write one or two regular expressions to generate from them a list of commands. - brenna commented on March 20th 20 at 11:44
@jeramie, Yes, so good, though, at the same time combed his entire collection (for video with the correct names).
For me the fundamental discovery here was the PS. Never before (consciously) not used. Focus with the formation of rows used even 15 years ago when doing a website with a million stat. pages for their pictures. The order of 10t. lines managed to spawn :)
mA-scarlet slice of lunacy
A bunch of text formulas, a bunch of hidden columns with intermediate results

Now, too, not mudrstvuya much the same way.
1. List shape Everything, highlight the desired "Copy Full Name to Clipboard".
2. Insert in Excel, with formulas, one intermediate and two (Creation, LastWrite) total column.
3. Turns two-column copy-paste Excel-to-PS execution 1-2 seconds nearly 1800 lines :)
- Elton commented on March 20th 20 at 11:47
@tristin69, the list is from the command line. - brenna commented on March 20th 20 at 11:50

Find more questions by tags Software