Question

Locked

How do I use a .bat to connect to a share drive but not map the share.

By greavette ·
Hello,

I have a logon script that uses the 'net use' command to map some shared drives. One of these shares has my Thunderbird Profile on it for each user. My plan for each user is to copy the Thunderbird shortcut to their desktop (if it's not there already) so whichever PC they use in our domain, they will be able to access their email. Can I use the net use command to open the share to each person can use their email, but no map a drive letter to it?

Thank you.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Just use batch to copy

by JPElectron In reply to How do I use a .bat to co ...

net use is to map a network drive, nothing else, so I'm not sure how that's going to help your situation.

If you're asking how to make a shortcut on each users desktop, if one isn't there already, that can be added to your logon script...

IF EXIST "%USERPROFILE%\DESKTOP\E-Mail.lnk GOTO noicon
COPY /Y "\\server\share\E-Mail.lnk" "%ALLUSERSPROFILE%\Desktop\E-Mail.lnk"
:noicon

Collapse -

Reponse To Answer

by greavette In reply to Just use batch to copy

Thanks very much for the reply. I figured out what I needed to do. I can still use the net use command, but I don't need to use a drive letter. It will map the drive just based on the UNC path. I can also use Pushd and Popd to quickly connect and disconnect (since I'm using Windows XP):

Thanks for the code on checking for the shortcut and copying if it doesn't exist...very useful.

Back to Hardware Forum
3 total posts (Page 1 of 1)  

Hardware Forums