Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Browsing network
Message
De
22/08/2001 09:09:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00547131
Message ID:
00547179
Vues:
22
>>>Hi, there is a way to show all computers and all shared resouces within a network from Vfp. Thanks !!!
>>
>>Something like getdir ? Or you can use BrowseForComputer too.
>>
>>
oShell = createobject("Shell.Application")
>>oFolder = oShell.BrowseForFolder(0, "Please Select folder", 0 )
>>*oFolder = oShell.BrowseForFolder(0, "Please Select folder", 0, '\\server\share' )
>>? oFolder.Items.Item.Path
PS:Also in VFP7 via GetDir() you can do the same thing.
>>Also check anetresources().
>
>Cetin,
>
>I think this should be:
#define BIF_BROWSEFORCOMPUTER  0x1000
>oShell = CreateObject("Shell.Application")
>oFolder = oShell.BrowseForFolder(0, "Please Select Computer", BIF_BROWSEFORCOMPUTER)
If anything other than a computer is selected the OK button is disabled.

Right George,
I always felt it was another method :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform