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:
00464409
Views:
17
Thanks Deamon, interesting way to do it

>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
For every bug fixed, there is a bigger bug not yet discovered.
Previous
Reply
Map
View

Click here to load this message in the networking platform