Discussion Locked

Write batch file to map network drive

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I would like to write a batch file that maps a network drive. I want to be able to e-mail an icon/shortcut to my users. Windows Xp and Win 2000 environment.

3 replies

by jhansen

'

net use x: \\server1\shairedfile

'
net use \\server1\printersharename

'

----------------
Check out http://www.zray.net for online backups. Computer techs, resellers needed. Sign up and start making extra money.

by noliver

it's

net use x: \\servername\sharename

Just wanted to clarify that for those who may be failing because they are trying to share a filename.

I love logon scripts btw and do almost anything I can in them from creating a poor-man's-proxy (hosts file with entries that gets copied to the local drive upon login) to displaying a prompt for software installations (or autoinstallations).

by erding

if using Active Directory, you can put the login scripts in your group policy objects. If you go to Active directoy users and computers, right click on you domain, or an OU and go to properties, group policy, edit policy, then go to user configuration, windows settings, scripts. Here you can add the script so that it runs every time that a user logs on. Then you don't have to worry about them remembering to click on the icon to map the drive.

This discussion is closed to new replies.