Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to fire Application from associated file
Message
 
 
À
29/02/2004 06:53:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00881863
Message ID:
00881885
Vues:
17
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform