Thanks for your input guys.

Quote Originally Posted by Tom Moran View Post
Well... if double-clicking the file name starts your program then there is no problem with the association code at all. It's done it's job.
It is associated but it doesn't show that file.

Quote Originally Posted by Tom Moran View Post
Are you parsing the file name passed for quotes and no quotes? Have you debugged the command$ open process?
I've Run:

"C:\WINDOWS\CD Case Labeller.exe" "c:\Temp2.cdl"

and it opens CD Case Labeller.exe but it doesn't show Temp2.cdl.

I've checked the Command$ in Form_Load and just added Me.Caption = Command$. It just shows the normal title.


Quote Originally Posted by si_the_geek
erm... have you checked the parameter list?
Yes Si I've built a little app with that code and I've used

Code:
Private Sub Command1_Click()

AssociateMyApp "CD Case Label", "c:\windows\CD Case Labeller.exe %1", "cdl", "c:\windows\CD Case Labeller.exe,-1"

End Sub
And that makes no difference.