News said:
Excelent now I am getting it. Just a couple more questions...
1. What is the "/p:n" doing in your bat file?
/p:n is the same is /persistent:no
What that means, is "Should this connection be automatically reconnected the
next time the user logs on?" I, personally, use /p:n for logon scripts,
because if the logon script will map the drive every day. If the person's
logon script doesn't run, that means there's some other issue, and I don't
want him to have his drives. Also, if there are a bunch of remembered
connections for users, they're a pain to get rid of when someone else
changes login scripts for everyone. To be a little more thorough, you may
want to delete any existing mapping first too, for good measure:
NET USE G: /DELETE
REM or net use g: /d
NET USE G: \\SERVER\SHARE /PERSISTENT:NO
REM or net use g: \\server\share /p:n
2. I assume I can put multiple lines in this logon.bat for many drives. For
example...
net use g: \\server\share /p:n
net use t: \\server\bv /p:n
net use z: \\server\goldmine /p:n
Yes, absolutely. :]
3. I don't think I can I share \\server can I?
No, you have to have a server name and a share name. You can map to
subdirectories in shares as well if the client machine is W2K or higher.
I know wouldnt be a good idea
even if you can but I was wondering if I can. I used to map an entire drive
of another computer in peer-to-peer.
Simplest thing to do would be to use the default share on each drive, i.e.
\\server\c$, \\server\d$, or probably to be a little more
security-conscious, create a second share on the drive if you want to share
the whole thing and then use \\server\CDrive or something.
Ray at work