Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding for Peer to Peer networks
Message
De
22/04/2001 07:20:35
Walter Meester
HoogkarspelPays-Bas
 
 
À
20/04/2001 13:02:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00497969
Message ID:
00498355
Vues:
12
Hi John,

>What you could do is to have the app figure out where it is when launched and base everything from that drive/dir. For example,
>
>SET PATH TO (CURDIR()+"data") && paths to data sibdir under current dir.

There is no need to use CURDIR().
SET PATH TO DATA would work just fine.

If the executable was run from another directory than the workdirectory you can determine the startupdir with JUSTPATH(_vfp.servername)

Walter,

>>Until now most of my apps have been developed for server based LAN use, but now one of my apps is being used on a peer to peer network where the users map each others drives with their own drive letter designation. This means that hard coded references to file locations no longer works.
>>I know that there is more than one approach to addressing this issue and I was wondering what is the currently recommended "guru" method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform