Login Script, Silent with Drive Checking

Good Morning,

I am trying to create a login script that will map a series of drives, make them persistent. I would like the script to run in such a way that the command window does not appear each time the person logs in. And, if the drives already exist, I would like the script to terminate (checking for all drives first).

Thanks in advance!
Who is Participating?
An example only:

After you create the script (i.e. login.bat) open properties and have it run minimized.


@echo off
Rem - check for the drives
if not exist f:\*.* net use f:\ \\servername\shared folder name
if not exist g:\*.* net use g:\ \\servername\shared folder name

Unfortunately, you do need to check for each mapped drive.
Lukasz ChmielewskiCommented:
WoodraxAuthor Commented:
Thanks a ton!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.