>>One of my clients wants his users to connect to a file server. How can this be automated from VFP? Let's assume that the name and password are already loaded from a local table into variables; we don't want the user to be asked for the login and password.
>>
>>TIA,
>>
>>Hilmar.
>
>
>oNet = CreateObject("WScript.Network")
>oNet.MapNetworkDrive("z:","\\server\share",,"domain\userid","password")
>
>oNet.RemoveNetworkDrive("z:")
>
This looks promising; I'll tell my client to try it out.
Do you know how to connect to a UNC path without mapping it to a drive letter?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)