Jump to content

associated a file with a program

Recommended Posts

How could I do that with autoit ?


This question has been asked before in this forum.

The magic words are "registry" and the AutoIt command "regwrite".

However, you can only associate a file extension with a program this way, not a file.

This example:

Regwrite("HKCR\AutoIt3Script\Shell\Open\Command","","REG_SZ",'notepad.exe "%1"')

Will associate an OPEN *.AU3 file with Notepad.exe.



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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...