>Check
Re: Mapping to network drive using .BAT file Thread #
888895 Message #
889197Hi Sergey
That code is the cleanest sample of all. It uses struct too which is good. However there is no NETRESOURCE class definition in struct.vcx so it fails here:
loNetResource = CreateObject("NETRESOURCE")
Thanks
>
>>
>>Can someone post a VFP working sample to map \\server\myfolder to drive W: with userid and password via WNetAddConnection2. I've tried it raw and with Christof's struct.zip and I'm always getting an error from the function. I'm obviously missing something.