-
I am developing some software in NT 4.0.
I need to be able to map a drive within the program, but use a different id/password than the person that is currently logged on.
Is there any way to do this that someone knows of? There's a posting on this site about a method that only accepts a password--but not a different username.
Thanks,
Jake
-
-
Thanks for the link to that project. However...
The sample project that you posted above still does not let me map the drive with a different *username*. That is the most vital part.
For example: In NT 4.0, when you go to map a drive through Windows Explorer, it lets you pick the drive name, the path to that drive, and then you can also enter a username/id in the "CONNECT AS" box, which is the username that you want to connect as.
Then, when you hit enter, it brings up a prompt asking for that user's password that you just entered.
This is how I would like my program to be able to map the drive (with a password AND username that are chosen by me and are different than the currently logged in user).
This way I can map a drive to a restricted server (with a special id/password), copy some files to it, and then disconnect it without the user ever having to know the special id/password. As it stands right now, the only other way around this is to have the user physically log on with the special id/password and run the program (this is not good!).
Any help is appreciated. :) I've been searching for about 3 weeks now on how to solve this problem.
Jake
[email protected]