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 have disabled it, but the app is still taking space. I have a Mac and it is only possible to disable Ai on that, but I think that bit does get rid of the AI components after a while. What we are told is that we agree to all this when we use the devices as it is in the end user agreements, their software, they can do what they like. I doubt that any bill will happen in the U.S, the government there are in league with big tech firms. The E.U maybe, they seem to have some guts when it comes to tech companies. The U.K is not in the E.U, but some things still affect us. Our government is as gutless when it comes to tech companies as the U.s government.
    • WebChangeMonitor 26.06 by Razvan Serea Monitors allows you to quickly check a number of web pages and tracks changes based on the content of the web pages. Allows to monitor several protocols, including HTTP and HTTPS. Allows to view and record differences. Available for Win7/10, Linux and others. WebChangeMonitor features: Allows monitoring of web pages and informs about content changes Indication of states of currently monitored items in the tool and taskbar Reporting as sound and/or email as well as log file or HTML log Several configuration / filter options Support all protocols, e.g. http, https Multi-threaded, running in the background Bulk-import and bulk-export of items (from/to CSV) to monitor Export of results to CSV file for further processing Allows running command on items states and/or showing diff (changes) of content with preferred diff-tool ...and many more! Open Source (C++, wxWidgets) Cross platform for Windows (7/10), Linux, RPi and Mac (if self-compiled) WebChangeMonitor 26.06 release notes: Release 26.06 brings mostly s but updates the underlying core infrastructure. A major compiler is used for both x86/x64 and WoA64 architectures. This also means that all core libraries are re-compiled accordingly which required some changes in the build scripts. One of the core libraries (cURL) has been updated to address vulnerabilities and a nasty linker error that was causing the need for a dedicated patch which could now be eliminated. Download: WebChangeMonitor 64-bit | Setup 64-bit | ~10.0 MB (Open Source) Download: WebChangeMonitor 32-bit | Setup 32-bit View: WebChangeMonitor Website | Other Operating Systems | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • BATorrent 3.0.4 is out.
    • yea they change their app to high-system app so you can't disable with adb or within android, you gotta get root be able to do disable this high-system app now if you have locked down boot loader you screwed. samsung started locking down their store and their account app extremely annoying, account constantly nagging you to sign in... i disable all ai core apps and especially gemini since you can't uninstall anymore. i hope some day someone will present a bill force this companies quit locking down this damn phone especially the apps...
  • Recent Achievements

    • Dedicated
      Mark Spruce earned a badge
      Dedicated
    • Collaborator
      conkir earned a badge
      Collaborator
    • Rising Star
      olavinto went up a rank
      Rising Star
    • One Month Later
      lamborghiniv10 earned a badge
      One Month Later
    • Week One Done
      lamborghiniv10 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      482
    2. 2
      PsYcHoKiLLa
      257
    3. 3
      Steven P.
      74
    4. 4
      +Edouard
      69
    5. 5
      Skyfrog
      68
  • Tell a friend

    Love Neowin? Tell a friend!