Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to Connect to Network Share
Message
 
 
To
24/07/2003 19:33:51
Kevin Spanner
Sensible Business Solutions
North Richmond, Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00813343
Message ID:
00813346
Views:
7
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform