Followers 0

# Which Associated Extension Invoked My Exe

## 3 posts in this topic

I have a series of files in various folders with the same unique ".abc" extension eg: C:\alpha.abc.

I have written an autoit program "shoname.exe" and associatated the extension ".abc" to always run "shoname.exe" whenever any file with the extension ".abc" is run. The program "shoname.exe" contains one statement:

Msgbox(0,"Program shoname.exe has just been invoked when you double-clicked file; ",$filename) How or where do I get the full path and name of "$filename"? Is it some sort of system variable?

Thanks for any assistance.

##### Share on other sites

The file path/name is probably a command-line argument, so you want to use AutoIt's special array $CmdLine[] Msgbox(0,"Program.... ",$CmdLine[1])

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

##### Share on other sites

This works perfectly. Thanks so much.