Hi Steff,
Most likely, the file full name has spaces in it. In such case each part of the name separted by space will be passed as a separate parameter into exe. To account for the spaces, enclouse the parameter in the file assocations in the double quotes.
myVfpApp.exe "%1"
See
How to pass parameters to VFP EXE FAQ #17861 for more details.
>Hi,
>
>I want my application to fire up when ever a file associated with it is double clicked. I've done it the way I used to (not used VFP for quite some time) and curiously it works under XP, but not Win2K.
>
>The method I used was simply to put "LParameters tcFilename" at the top of the file marked as "Set main", which as I said works under XP, but under Win2K it errors with "Must specify additional parameters", so I'm missing something, but I have no idea what! If anyone can help, much appreciated.
>
>TIA
>
--sb--