Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Associate a File Type with a Specific Program

how to force any *.sdf file to open with My program?

for example: every *.sdf file will open with this program: D:\MyProg.exe

I need any registry value for this.

how to do it?

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Sathya Apr 26 '11 at 14:42

This question was marked as an exact duplicate of an existing question.

Have you tried making MyProg.exe the default application for a .sdf file ? – Shekhar Apr 24 '11 at 20:23

Here is the needed registry entries. you can save it as a .reg file (for example sdef_associate.reg) and use the command line tool reg (build in windows) to import it for example: REG IMPORT sdef_associate.reg

Windows Registry Editor Version 5.00





@="\"D:\\myprog.exe\" %1"
share|improve this answer
thanks for the help, but it not work. the *.sdf in my computer Always open with visual-studio 2008 – Gold Apr 25 '11 at 7:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.