How do you add a 'Year' to Folder Details?


Recommended Posts

Hello :)

 

Not sure if this is possible but...

 

Right Clicking the details tab/header in Windows Explorer, I can see that you are able to add a variety of different display columns such as Tags, Title, Authors etc. There is a choice there to add a Year column which i assume reads mp3 files for their id tags and outputs it to this column.

 

However, I would like to manually add a Year to a folder so I can then sort the folders by Year. (The year is not the date modified/created - its a manually added number)

 

Any idea how this can be done?

 

Thanks.

Go to the folder the files are in > Right click the background > Sort by or group by > More > Check year > Ok > Right click background again > Sort by or group by > Year

"However, I would like to manually add a Year to a folder so I can then sort the folders by Year. (The year is not the date modified/created - its a manually added number)"

It works by reading the tags from mp3 or mp4 files (preferably reading from the index if windows search is enabled) so it cant be done with folders.

Youll either have to...

ditch the folders and let explorer group the files by year

or add the year to the folder name

or use some program to edit the folders "date created" ntfs property and sort by that

The Year is already in the folder name. However I can't sort the folders by Year because it is at the end of the folder name. eg:

 

Foldername1 (2013)

Foldername2 (1995)

Foldername3 (2001)

 

I'll look into forcing a 'date created' attribute somehow. Thanks.

theres version of Unix "touch" program for windows, that can change date created attribute.

I've used that method in the past for similar reasons. touch directoryname --date="1/1/2010" and done, sortable by date. Can always create a script in whatever language of choice to parse the years and then do it for you as needed. Using the Year column won't work as directories don't have that metadata.

Another possibility. In each directory, create a desktop.ini file.  (Mark it as hidden afterwards if you don't want the clutter.)  In it, paste the following:

[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}]
Prop2=31,Title
Prop3=31,YEAR GOES HERE
Prop4=31,Author
Prop5=31,Keywords(Tags)
Prop6=31,Comment 

Change Prop3 to the year that you want to sort on. Turn on the "Subject" field. As far as I know the others won't work with a directory, but Subject does and it's sortable. (If somebody has more info that I missed that would be great, not an expert on the desktop.ini files.)  *shrug* it's an option.  Personally I like the "touch" option better, but whatever suits your need better and all that.

 

26a5.png

For anyone that is interested in doing something similar, here is the autohotkey script i created. Run the script, highlight a folder in windows explorer, and press F10. It will create the desktop.ini file in that directory.
 
I noticed that it can take up to a few seconds for the Subject field to refresh with this new value too. So you need to give it a few seconds for the result to show.

#Persistent
#NoEnv
SetWorkingDir %A_ScriptDir%

F10::
Clipboard =
Send ^c
ClipWait, 2, 1
Selection := Clipboard
if Selection = 
Return
Clipboard =
bracket := InStr(Selection, "`(", False, 1)
year := SubStr(Selection, (bracket+1), 4)
FileDelete, %selection%\desktop.ini
FileAppend,`[`{F29F85E0-4FF9-1068-AB91-08002B27B3D9`}`]`nProp2`=31`,Title`nProp3`=31`,%year%`nProp4`=31`,Author`nProp5`=31`,Keywords`(Tags`)`nProp6`=31`,Comment, %selection%\desktop.ini 
Return

Hello,

Hello :)

 

Not sure if this is possible but...

 

Right Clicking the details tab/header in Windows Explorer, I can see that you are able to add a variety of different display columns such as Tags, Title, Authors etc. There is a choice there to add a Year column which i assume reads mp3 files for their id tags and outputs it to this column.

 

However, I would like to manually add a Year to a folder so I can then sort the folders by Year. (The year is not the date modified/created - its a manually added number)

 

Any idea how this can be done?

 

Thanks.

Well I was gonna suggest "datecreated:2013" but all you want to do is add a tag then...

Sadly, in Windows, folders are folders while in unix, folders are files so metatags cannot be added to them in Windows....

The reason desktop.ini works is because that file is used to keep a folders layout view and its parameters. Since it is a relation to the folder, you can add anything to it and it will be information about the folder.

  • 4 years later...

I know I'm bringing this topic back from the dead, but since i did quite a bit of research and found not a single success in this subject i decided to share this solution with you guys. It's quite simple actually.

Desktop.ini is where folder metadata is stored so we need to create a file like that using the correct information inside, creating each file is a bit tricky i will probably end up creating a script to read the data from the first file on the directory and apply to the ini file, here is one example:

Source for details:

Schema

[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}]
Prop2 = 31,Title
Prop3 = 31,Subject
Prop4 = 31,Author
Prop5 = 31,Keywords(Tags)
Prop6 = 31,Comment
[{56A3372E-CE9C-11D2-9F0E-006097C686F6}]
Prop4 = 31,Album Name Test
Prop5 = 31,2000
Prop11 = 31,Pop

All the above were tested on WIndows 10 x64 and are fully working.

  • Jim K locked this topic
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I sort of agree with you on that. I had a telescope - a real hefty thing, although only around 500CHF - that got me so fascinated about the stars and planets. I would stare for hours, amazed that I could see the craters of the moon or the rings of Saturn in "realtime" (quotations because, y'know, speed of light and whatnot). A friend of mine has a telescope like the one mentioned in the review, and the pictures are amazing to look at. But there is something missing for me. I may as well just go to NASA's website and look through their gallery.
    • As opposed to catching bad press because it's the engine's fault? You didn't really think this through did you? lol. The engine has all the tools a dev needs to optimize their game, Epic isn't gonna hold their hand to make sure they use them. Also, Epic isn't forcing anyone to use Lumen, Nanite or super high resolution meshes and textures. Most of the stuttering can easily be fixed by generating a PSO cache and compiling every shader before loading the game, it's up to the developer to set it up properly.
    • I think it depends on what you're looking for to do, and the time you have to spare. With my Dwarf 3, I easily spend 3-4 hour sessions; half an hour driving to an un-light polluted place, another half hour unpacking and setting up the smart scope + tripod for equatorial tracking, then 15 more minutes mucking around with settings and shooting calibration frames, spending a few hours shooting, merging with past photo sessions, etc. It's crazy how time flies and I often get home later than I expected. It's something I still need to set aside a good part of an evening to do, all in all. For one session, where you often need like four for best results when it comes to deep space objects. Even with a smart scope like Dwarf 3, regular non-astro photography is still way more approachable to people getting into photography. I find this is a time consuming niche no matter how I go about it. With practice, I can probably begin cutting time here but I think where smart scopes find their home is among people who love to shoot the night sky but don't have the spare time to go deep with the "navigator level" attunement to the night sky itself in addition to everything else. Having said this, _if_ you have even more time to spend on this hobby, it will probably be even more rewarding to do it more by hand and learn the skies and the details of how it all works.
    • I misread the title and thought Teams itself would be redesigned. Imagine having this one as a native WinUI app.
    • Dell, HP PCs ran into endless reboot, BitLocker recovery loops but Windows 11 isn't to blame by Sayan Sen Last month Neowin reported on a major issue on Dell systems wherein a bug in its official support tool was leading to endless blue screen of death (BSOD) and restarts. Following our report, Dell officially acknowledged its SupportAssist-related crash issue, confirming that the culprit is not Microsoft's operating system but rather a faulty version of its own remediation software. In a newly published support advisory, Dell stated that version 5.5.16.0 of Dell SupportAssist Remediation and Alienware SupportAssist Remediation can trigger blue screen errors and unexpected system restarts. The company notes that the problematic component operates independently of the main SupportAssist application, meaning users should not remove the primary SupportAssist software when troubleshooting the issue. According to Dell, the crashes are linked specifically to the SupportAssist Remediation service, which is bundled with SupportAssist OS Recovery Tools, and as such it has since released an updated version, 5.5.16.1, which is said to resolve the problem. Affected users are advised to first verify whether version 5.5.16.0 is installed by checking the Installed Apps section in Windows Settings. If so, Dell recommends updating SupportAssist OS Recovery Tools through either SupportAssist's "Update Software" feature or Dell Command Update. Dell also advises users to back up important data before performing the update and to ensure systems remain connected to power throughout the installation process. If you are still having issues though make sure to report to the Dell support forum. As it turns out though Dell is not the only PC maker currently dealing with update-related headaches as HP is also facing a separate but probably equally frustrating issue involving recent Windows Secure Boot updates that were released with recent Windows 11 Patch Tuesdays. Similar to Dell, HP also put up its own support article where it explains the issue. The company says that affected devices could hit a brick wall when booting as they run into a BitLocker recovery loop after the April 2026 updates. The problem appears to affect systems wherein the new UEFI Secure Boot CA 2023 certificates fail to apply properly. As such affected users will find themselves entering their recovery key over and over again despite the system otherwise functioning normally. HP says such PCs should be updated to the latest available BIOS version and configured with the necessary Secure Boot certificates before installing Microsoft's Windows 11 Patch Tuesday updates. Systems that are already experiencing the problem may require BIOS configuration changes to restore normal boot behavior. Admins can find information regarding that in the support article here on HP's official website.
  • Recent Achievements

    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
    • Dedicated
      Conjor earned a badge
      Dedicated
    • Week One Done
      Windows Guy earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      493
    2. 2
      PsYcHoKiLLa
      246
    3. 3
      Steven P.
      72
    4. 4
      +Edouard
      69
    5. 5
      neufuse
      68
  • Tell a friend

    Love Neowin? Tell a friend!