Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding for Peer to Peer networks
Message
From
22/04/2001 07:20:35
Walter Meester
HoogkarspelNetherlands
 
 
To
20/04/2001 13:02:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00497969
Message ID:
00498355
Views:
11
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform