Hi Kevin,
You can use WSH to map/unmap shares.
oNet = CREATEOBJECT("Wscript.Network")
oNet.MapNetworkDrive("V:", "\\Server\Volume\dir", .F., < user name >, < password >)
...
oNet.RemoveNetworkDrive("V:")
Check also
NETRESOURCE structure class File #
9502, in particular DEMO_WNetAddConnection3.PRG, for an alternative.
>For Security reasons, we need an application that sits on users desktops which will perform its own network logon to a particular share on a particular Windows 2000 server.
>
>The user has not authenticated in any other way to this server until they launch this application.
>
>All the users will already be logged on to a Novell network separately. Most of the users are now in Windows 98 but will be migrating to Win2K or WinXP in 1 year.
>
>The application has to :
>
>Ask for username and password (which will be created on Win2kServer)
>Authenticate user
>Perform specific drive mapping
>Launch Specific VFP7 executable on server which wil be passed this user's name for auditing
>Auto disconnect from Win2K server at exit and delete drive mapping
>
>Any ideas?
--sb--