Linker IT Software
Google
Web www.oraxcel.com
menubar-top-links menubar-top-rechts
Home Help Search Login
Welcome, Guest. Please Login.
SQL*XL: Database to Excel bridge litLIB: Excel power functions pack ExcelLock: Locking and securing your valuable Excel spreadsheets encOffice: Protect your Excel file easy and safe encOffice: Protect your Excel file easy and safe
Pages: 1
Add file association in windows 7 (Read 1969 times)
Gerrit-Jan Linker
YaBB Administrator
*****




Posts: 75
Add file association in windows 7
16.03.13 at 20:32:34
 
Add file association in windows 7
 
 
    Right click HKEY_CLASSES_ROOT and pick New, Key. Name it according to your desired file extension, e.g. .ext. If it exists already, you can skip this step.
    Set the default value of the key you just created to some unique name that isn't used yet, e.g. 'MyFileType'. Again, if it's set already, skip this step.
    Create another new key using the same name you picked in the previous step. Skip this too, if the key exists already.
    Set the default value of the new key to the name that should appear in Windows Explorer and other programs as the file type.
    Right click the new key and create a sub key 'DefaultIcon'.
    Set the new key's default value to C:\Some\Path\To\Your\Icon\Ressource.ico,0 (the 0 is the index of the icon to be used; if there's only one icon in the ressource, it has to be 0).
    Create another new key next to DefaultIcon and call it shell.
    Now, for each verb/action you'd like to associate, create a new sub key with the desired name. Some verbs are preset and will automatically use localized names, e.g. open, edit or print.
    For each verb create a sub key command and set its default value to the program to be run. Also make sure to include all parameters needed, adding quotes if there are spaces inside, e.g. "C:\My Path\My Program.exe" "%1". %1 will be replaced with the actual file name picked for this action.
Back to top
 
 

Gerrit-Jan Linker
Linker IT Software
Email WWW Gerrit-Jan Linker   IP Logged
Pages: 1