0

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?

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

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

[HKEY_CLASSES_ROOT\.sdf]
@="sdef_file"

[HKEY_CLASSES_ROOT\sdef_file]
@=""

[HKEY_CLASSES_ROOT\sdef_file\shell]

[HKEY_CLASSES_ROOT\sdef_file\shell\open]

[HKEY_CLASSES_ROOT\sdef_file\shell\open\command]
@="\"D:\\myprog.exe\" %1"
  • 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.