DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Per-user file associations  (Read 4,488 times)

TucknDar

  • Advanced coder of Nowt
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
Per-user file associations
« on: June 06, 2008, 09:35 AM »
Finally I found a solution to set per-user file association! I've been looking for this for quite some time, but never found a software that would let me do this. :D

Then I came across the registry entry HKEY_CURRENT_USER\Software\Classes\ which is where file associations are stored for current user (obviously). Maybe it's been mentioned here before, but this really has been bugging me so I thought I'd just post here in case anyone else was looking for it.

Now it's as simple as copying the key from HKEY_CLASSES_ROOT\ to HKEY_CURRENT_USER\Software\Classes\ and changing the default open command in the latter. That way there's a default system association, i.e. .doc -> MS Word, that's overridden by the current user's setting, i.e. .doc -> TextMaker/OpenOffice/whathaveyou

Now if only there was a piece of software that would let me do this without bothering with the registry, I'd be happy. Any takers? It would make for a nice coding snack, I suppose. ;)

Original address: https://www.donationcoder.com/forum/index.php?topic=13573.0