Jump to content

Make my file? Can I?


Recommended Posts

I've seen many AutoIT project that create its own file type.

So is there any way to make your file type use your program to read?

For example if you have a .PSD file, windows will open you Adobe Photoshop

I thought I maybe something in system32.dll but I don't know what is it :D

Thanks in advance

for(loop=0; loop<infinity; loop++) { alert('I love you'); }

Link to comment
Share on other sites

What you are referring to is a file association. In reality, any file extension can be opened in any program. What you want is for your custom extension to open with your script, there are plenty of examples of this.

Oh look, I did the search for you. http://www.autoitscript.com/forum/index.php?showtopic=17894

Thanks, it works, but could you explain me what is the red word stands for?

fDefineOpenAssociation("csv", "CSV Class", "Data base file splited by comma ", @SystemDir & "\SHELL32.dll,1", "notepad.exe 1%")

for(loop=0; loop<infinity; loop++) { alert('I love you'); }

Link to comment
Share on other sites

Thanks, it works, but could you explain me what is the red word stands for?

fDefineOpenAssociation("csv", "CSV Class", "Data base file splited by comma ", @SystemDir & "\SHELL32.dll,1", "notepad.exe 1%")

It should be written:

... "notepad.exe %1")

And it is the operating system variable for passing the file of interest to the application.

Also, ""Data base file splited by comma ""

should be "Data base file split by comma "

or better still

"Data base file - comma delimited"

[size="1"][font="Arial"].[u].[/u][/font][/size]

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