swin4ort Posted April 29, 2004 Share Posted April 29, 2004 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. Link to comment Share on other sites More sharing options...
CyberSlug Posted April 29, 2004 Share Posted April 29, 2004 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! Link to comment Share on other sites More sharing options...
swin4ort Posted April 29, 2004 Author Share Posted April 29, 2004 This works perfectly. Thanks so much. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now