Setting file associations automatically

  • Thread starter Erik Wikström
  • Start date
E

Erik Wikström

Hello,

I am developing an application that will require its users to select
certain files through a standard file dialogue. The problem is that if
if they have MS Access installed it will have created a file-association
which prevents this from working. So what I primarily would like is to
have an easy way to delete this association, and with easy I mean
something like a bat-file the user can run. Also, if someone knows, is
there a way to then create a new association for that file-type, or to
just change the association instead of deleting it to begin with?
 
P

Pegasus \(MVP\)

Erik Wikström said:
Hello,

I am developing an application that will require its users to select
certain files through a standard file dialogue. The problem is that if
if they have MS Access installed it will have created a file-association
which prevents this from working. So what I primarily would like is to
have an easy way to delete this association, and with easy I mean
something like a bat-file the user can run. Also, if someone knows, is
there a way to then create a new association for that file-type, or to
just change the association instead of deleting it to begin with?

You could use the ftype and/or assoc commands. There is
some further functionality in associate.exe. If I remember
correctly then it can be downloaded from some Microsoft
site.
 
E

Erik Wikström

You could use the ftype and/or assoc commands. There is
some further functionality in associate.exe. If I remember
correctly then it can be downloaded from some Microsoft
site.

This looks exactly like what I need, thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top