Sign in to follow this  
Followers 0
spyrorocks

File Associations

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0