digipres / registries-of-practice-project

The "Registries of Good Practice" Project
MIT License
6 stars 0 forks source link

Generate software associations from operating system commands #18

Open anjackson opened 2 months ago

anjackson commented 2 months ago

One way to gather some basic software/format associations is to make use of things like the Windows Registry to extract the information from a live system.

e.g. assoc maps extensions to IDs, and ftype maps IDs to software. More information about that software can then be gathered like this:

wmic datafile where name="C:\\Program Files\\Microsoft Office\\Root\\Office16\\WINWORD.EXE" GET /ALL /FORMAT:csv > winword.csv

Here's some examples:

assoc.txt ftype.txt winword.csv

Wrapping this up as a single exe that gathers the minimal useful info and shares it would make it easier to gather a lot of basic info.