>>Thanks Ed. The login is done automatically? I think. We have a domain at the office so that is what I'm testing with.
>>
>
>If your users are running NT Workstation or W2K -
>If you aren't logged in to the domain you might consider using shellexecute to run a batch file (which you can create from vfp).
>
>Net use \\servername\sharename /user:yourusersname followedbytheirpassword
>
>If your users are running 95 or 98 you might want to get the KB I posted here.
>
>I'm sure Ed is going to try to get you to use the WSH also, and I think that's a good strategy too. If you don't know what the client is going to be, it is probably the best.
Actually, I'd mentioned that, or the WNetAddConnection3() API call (implemented in my NETRESOURCE class here on UT). Wscript.Network's MapNetworkDrive method is less code, and eventually will offer better portability. The advantage of WNetAddConnection3() is the ease of trapping failures, at the expense of a fair amount of code, and you don't have to install anything additional, just use my NETRESOURCE and CLSHEAP classes.