Jump to content

creating file associations


Recommended Posts

Decide on a name for the filetype. Using your example, something like ABCFile. Then create the registry key:

RegWrite('HKCR\.abc\', '', 'REG_SZ', 'ABCFile')

That's the filetype itself, then create a registry key to tell the computer how to handle the filetype

RegWrite('HKCR\ABCFile\shell\open\command\', '', 'REG_SZ', 'C:\myprogram.exe')

That should get you started. Have a look through your registry for some well known file types for examples. Try .txt (txtfile), .mp3 (Winamp.File), or .bmp (Paint.Picture) [these are my filetypes, yours could be different].

Link to comment
Share on other sites

Decide on a name for the filetype. Using your example, something like ABCFile. Then create the registry key:

RegWrite('HKCR\.abc\', '', 'REG_SZ', 'ABCFile')

That's the filetype itself, then create a registry key to tell the computer how to handle the filetype

RegWrite('HKCR\ABCFile\shell\open\command\', '', 'REG_SZ', 'C:\myprogram.exe')

That should get you started. Have a look through your registry for some well known file types for examples. Try .txt (txtfile), .mp3 (Winamp.File), or .bmp (Paint.Picture) [these are my filetypes, yours could be different].

<{POST_SNAPBACK}>

just have to say i love the sig man, that gave me a good laugh at work..
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...