• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

New file extension needs to be opened with same program for all users

We installed a new program on a multi-user PC.  The program will open a file extension .dir.  When I attempt to open a .dir file, it asks what program I want to use and then continues to open it afterward with the same program.  The problem is, we have 15+ users who will be using this PC and this program/file.  How do I associate .dir with the program FOR ALL USERS without having to logon as each user.

I have been through modifying File Associations, but there is no option for adding a new file extension - only modifying existing ones.
0
Sudsybrew1
Asked:
Sudsybrew1
  • 3
  • 2
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
what OS/PC is this?
0
 
Bill PrewCommented:
These associations are likely stored in each users registry, and I'm not aware of a way to access that for all users.  However, you can add a couple of commands that run when a user logs on to create the association as follows.

FTYPE dirfile="C:\Program Files\YourApp\YourExe.exe"
ASSOC .dir=dirfile

~bp
0
 
Sudsybrew1Author Commented:
Unfortunately, the user needs Admin credentials to perform this.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Sudsybrew1Author Commented:
Windows 7
0
 
Meir RivkinFull stack Software EngineerCommented:
check here:

What registry keys are responsible for file extension association
add another key to support .dir files.
copy the structure from .txt key and update ShellNew value to contain the exe path and params
0
 
Bill PrewCommented:
I would think any approach might need local admin rights to add an extension, but can't easily test, either by registry updates, or via command line tools.

~bp
0
 
Sudsybrew1Author Commented:
After seeing this post, I went to the web to find the exact steps and keys that needed to be added.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now