Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference another NT workstation drive?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00339897
Message ID:
00340421
Views:
33
>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform