Mike,
See
Re: WNetAddConnection2 Message #
531154>>Check
Re: Mapping to network drive using .BAT file Thread #
888895 Message #
889197>
>Hi 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
--sb--