Folder sharing between computers.

G

Guest

I have setup sharing of a folder A on computer B, with username C, and
password D on a LAN.

In computer E on the LAN I can open up the "My Network Places, find
computer B, be prompted for the username and password, type in C and D
and the share is successful and I see folder A on computer B and can
access the files according to my permissions.

I can then map folder A in computer B to drive f: on computer E
successfully, clicking the "Reconnect at logon" checkbox. Everything is
successful.

If I now start a new session of Win2k on computer E either by restarting
or logging off and logging on again I am prompted to enter password D
each time for the share to take effect.

I want to be able to automatically supply password D for the share
without having to type it in each time I logon to Win2k on computer E.
This tells me that I must issue a "net use ..." command before I am
prompted for the password of the share, unless there is some other way
to automate it. How can I do this so that I do not have to manually
supply the password for the share each time I logon ?
 
R

Richard G. Harper

I would automate this by putting a batch file in the proper Startup menu
group (either All Users or the specific user) with these two lines:

net use p: /d
net use p: \\servername\sharename sharepassword /USER:username

Substitute the desired drive letter for d: above, the proper server and
share names, the password and the username in the appropriate places.

--
Richard G. Harper [MVP Shell/User] (e-mail address removed)
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ... http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm
 
E

Edward Diener

Richard said:
I would automate this by putting a batch file in the proper Startup menu
group (either All Users or the specific user) with these two lines:

net use p: /d
net use p: \\servername\sharename sharepassword /USER:username

Substitute the desired drive letter for d: above, the proper server and
share names, the password and the username in the appropriate places.

Yes, that worked well. Thanks !

Any idea why mapping a drive and choosing "Reconnect at Logon" did not
work while if I specify it in a batch file it does work ? It appears
that the former does not save the sharepassword and reapply it
automatically each time, for some reason, but instead has to prompt me
for it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top