Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting full file paths.
Message
 
À
23/11/1999 10:05:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00294333
Message ID:
00294396
Vues:
20
Always plenty opportunities to kill the Fox--

A couple of suggestions:
1. Ask your users for help. After the user chooses a file, check to see if it has anything to identify it as a drive (C:, D:,etc), ask them in a little dialog box to "Please select file from network drive."

Another longer, solution would be to use the aNetResources function.It shows you the number of drives found on a specific(current) network server. The servername will followed a path that starts with a network share name, then the folder tree beneath it. This is fine if you know the names of the servers. Youcan use the path that is returned to connect to your server.

FoxPro can get exciting when running from a network share this way, but v6.0 handles it very well.

I was wondering, though, why you were looking for the exact file location on a network share. What is it that you are doing that will execute on a Network share, but not on a local or mapped drive?


>Hello.
>
>I am having a problem trying to get file locations on a network.
>
>The problem is that whenever I try to locate a file on the network (using GETFILE()), the path I receive contains the drive letter mapped on the working computer, which differs from computer to computer. What I need is a way for the file path to include the full network path (\\servername\serverdrive\).
>
>Is there a setting that allows GETFILE() to return such a path? If not, is there another way to obtain it?
>
>Any help would be appreciated.
>
>Thank you.
>
>Yan Vaillancourt
JMB Multimedia--creators of top-quality database-driven web sites and multimedia presentations.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform