Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyway to browse computer only?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00480899
Message ID:
00480912
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform