Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get my network places
Message
From
19/12/2002 09:31:12
Fabian Belo
Independent Developer
Argentina
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00734447
Message ID:
00734464
Views:
31
>Is there a function (something like Getfile()) to obtain my network places?
>For example: Need to obtain or display
>\\Server\c
>\\Terminal1\c
>\\Terminal1\d

Use API:
WshNetwork = CreateObject("WScript.Network")
   oDrives = WshNetwork.EnumNetworkDrives
   
   ? "Network drive mappings:"
   For i = 0 to oDrives.Count - 1 Step 2
     ? "Drive " + oDrives.Item(i) + " = " + oDrives.Item(i+1)
   Next
"Since I've read that alcohol is bad... I quit reading."
Me


http://www.fabianbelo.com.ar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform