Jump to content
Sign in to follow this  
Guest RobBf

associated a file with a program

Recommended Posts

Guest RobBf

How could I do that with autoit ?

Share this post


Link to post
Share on other sites

How could I do that with autoit ?

<{POST_SNAPBACK}>

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\.au3","","REG_SZ","AutoIt3Script")
Regwrite("HKCR\AutoIt3Script\Shell\Open\Command","","REG_SZ",'notepad.exe "%1"')

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

Regards,

-Sven

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...