Jump to content
RamonL

Need to change file association to specific exe

Recommended Posts

RamonL

Hello community

I have following situation. I need to change a file associaton of a “.eml“ file from Outlook to Groupwise on windows 10.

I tried with the windows 10 included commands „assoc“ and „ftype“, but the associaton was not changed.

The only way to get the associaton changed successfully, is through the default file association GUI. Also registy keys din’t help, because at the time you set the association a hash key is generated. So the only way it to change it trough the GUI.

 Now I need to change this association to all our devices. Is there a script who runs the GUI and changes the .eml file associaton from Outlook to Groupwise, if possible in invisible mode so that the steps are not shown on the display?

 

It would be great, if someone could share me a script.

 

Thanks in advance for your help.

Share this post


Link to post
Share on other sites
orbs

not knowing why the combination of assoc and ftype did not work for you (even on Windows 10), but i can suggest you capture the changes between the original state and the successfully-modified state to see what registry settings were modified, and then write a script to apply these settings.

Share this post


Link to post
Share on other sites
RamonL

Hi Orbs

I did also this... but the problem is, that there are regkeys, that have a hash key. I mean, every time you change the association, you will got a new hash key. So it is impossible to work with a regkey difference

The only way is to work with an autoit script that runs all GUI steps....

Share this post


Link to post
Share on other sites
orbs

if it wasn't Windows 10, i'd strongly recommend you pursue the path of scripting the file association operation. however, knowing that Windows 10 has a strong tendency to revert to Microsoft-favored defaults when altered by the user, i understand your preference to automate the GUI.

your starting point would be getting familiar with the "AutoIt Window Info" tool (it's in the start menu, in the AutoIt program group). use it to investigate the GUI for usable controls. then read the help file for various Control* commands.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×