Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell what server a drive is mapped to?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00463131
Message ID:
00463222
Views:
15
Here is an example using windows scripting. Just a little hack. I don't know of fox api to do this.

? "Start of example"
lcFile = getFile()
? lcFile
lcDrive = justdrive(lcFile)
x = CREATEOBJECT("WScript.Network")
for i = 0 to x.EnumNetworkDrives.Count
   IF x.enumNetworkDrives.Item(i) = lcDrive
      lcPathNeeded = x.enumNetworkDrives.Item(i + 1)
      i = x.EnumNetWorkDrives.Count + 1
   ENDIF
endfor
? lcPathNeeded
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform