Jump to content

associated a file with a program


Guest RobBf
 Share

Recommended Posts

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

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...