Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyway to browse computer only?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00480899
Message ID:
00480912
Vues:
10
>Hi,
> Anyway to allow user to browse only computers located in netowrk instead of folder and driver together?
>
>Thank you

The Shell.Application object may have the functionality you desire. In order to access it, the computer must have the Active Desktop installed. This is a part of Win98, but not Win95. On Win95 boxes, IE 4.01 must have been installed and the option selected. You have to check the registry for the object (HKEY_CLASSES_ROOT\Shell.Application) and the version of Shell32.dll (must be 4.71 or greater) to see if the object is available. If so,
#define  BIF_BROWSEFORCOMPUTER  0x1000
oShell = CREATEOBJECT('Shell.Application')
oComputer = oShell.BrowseForFolder(0, "Select Computer", BIF_BROWSEFORCOMPUTER)
? oComputer.Title
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform