>Thank you for your reply. When I try to use the API calls, it assumes that the user already has a valid connection to the server. I want to do more than just map a drive. I want to programmatically login them into an NT server from an NT/2000 workstation and then be able, through some error handling variable know if the user was successfully logged in, if they need to change a password, if the server is down....
I missed that part the first time. There are other optional parameters to the MapNetworkDrive method that let you specify the username and password to use if you want to use credentials other than the logged in user. I'm assuming (I know) that you are using the username/password when you run NET USE. You are obviously logged into the NT/2K workstation. Are you using a different user name for the share you are trying to connect to?
Roger
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only