Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network drive
Message
De
12/06/1999 14:26:47
 
 
À
09/06/1999 15:31:59
Gordon Evans
Megabyte Computer Services Ltd
Sheffield, Royaume Uni
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00226934
Message ID:
00229169
Vues:
29
>>>If my development computer can see the network neighbohood why can't the VB drive control?
>>
>>Well, drive control uses drives related Windows API (ie physical peripherals) whereas network neighborhood uses the Network API (from Novell and NT services for example, or any network).
>>
>>Drives related Windows API doesn't support UNC names since it's designed in reference to old Win16 standalone machine functions, wher each resource is known physically, ie A:, C:, D:,...
>>
>>If you want to see Network resources you'll have to use the API that fit your needs instead of the drive control OCX.
>>
>>Here you'll find a goo example of using the API :
>>
>>http://members.aol.com/btmtz/vb/browsdlg/index.htm
>>
>>HTH
>Thanks for the information, just down loaded the sample.
>Very useful, it will take a while for me to work out what does what.
>In Foxpro I can get all mapped drives with =getdir()
>

Depending on the environment, you might also be able to use things like the Shell.Application's BrowseForFolder method, which is network- and special folders- aware, or build your own control that uses the Scripting.FileSystemObject to let you dig down (or up) through the file system.

>Gordon.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform