Folder sharing between computers.

  • Thread starter Thread starter Guest
  • Start date Start date
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 ?
 
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
 
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.
 
Back
Top