Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to fire Application from associated file
Message
 
 
To
29/02/2004 06:53:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00881863
Message ID:
00881885
Views:
16
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform