Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using GetDir() in a net environment
Message
De
19/11/2010 11:22:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01489782
Message ID:
01489796
Vues:
46
I did it the flag param makes it possible to navigate through the net.
What I want to do is to open the dialog box with \\mypcName selected
One solution would be to check the shared disk device and to set the default directory to one of them
But what if I don't have any volume shared but just a single path ?

How could I get the shared drives and directories ?


>>Hi all
>>
>>I came into this problem :
>>
>>In a setup program to be launched when the application is installed, I need to define which is the Server Path but this path must be a net path. What I do is something like this :
>>
>>zServerPath = "\\"+Addbs(Alltrim(Left(Sys(0),At('#',Sys(0))-1)))+Left(Sys(5),1)+Sys(2003)
>>
>>if directory(zserverpath)
>> * I have no problem, as the actual path can be reached through the net
>>else
>> * Probably the actual path is not shared or it is shared with another name
>> * at this point I launch a messagebox asking the user to check if the path is shared and then to pick the net path
>> zserverpath = getdir()
>> * As what i want to obtain is a net path i will check if left(zserverpath,2) == '\\'
>>endif
>>
>>what I want to do is to open the getdir dialog box showing the network devices instead of the local one
>>
>>Thanks
>>Alessio
>
>Check all parameters in GetDir() in Help.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform