Did you echo out %0 to see if it's that?
Also, in your association did you pass that as a variable?
Hint: it's passed in usually in %1 like we read at http://www.installaware.com/forums/viewtopic.php?t=9632
I have a batch file .bat and I have associated the .fxx extension with the batch file. When a user double clicks on a file with that extension it runs the batch file. My question is how do I get the name of the file (with path) of the file that the user double clicked on as a variable inside the batch? I want to pass the file name to a program the batch runs as a parameter like c:\path\myprogram [the variable containing the clicked on file]

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic