Jump to content

File Associations


spyrorocks
 Share

Recommended Posts

Hello.

I am making a autoit script that will open a certin file type and i need the script to set the file associations in the registry for it.

The extention is .pak

Thanks help appriciated!

Link to comment
Share on other sites

hmm... Kinda hard to explain, but i'll try.

look at this in the registry:

HKM_CLASSES_ROOT\

those are all the file types on your computer.

the "defualt" key should be the content-type.

such as the following, for .au3 files:

AutoIt3Script

now, if you look down further, you'll find a key called, "AutoIt3Script". Inside that key are the following in the following order:

+DefaultIcon = (default) Location to icon file

+Shell = (default) Run

++RightClickMenu Item1 = (default) Title of the menu ;Under shell.

+++Command = (default) Location of the program to run.... ;Under RightClickMenu Item1. It does'nt have to be called, rightclickmenu item1

Edited by CHRIS95219
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...