How Create A Drive Mapping Batch File Using Notepad And Command Prompt?

Asked By 10 points N/A Posted on -
qa-featured

I need to create a batch file that maps the required Network drive automatically for me instead of going through the whole procedure. Is there any way to create drive mapping batch file?

SHARE
Answered By 0 points N/A #81609

How Create A Drive Mapping Batch File Using Notepad And Command Prompt?

qa-featured

You can create a drive mapping batch file by the following steps.

Step 1: open notepad and type the following commands

@echo off

net use

: <map-letter>:  \<server-name><shared-folder-

name> <password>  /user:<domain><user-name>

/persistent:yes

For example:

net use P: \TechyVServer123g$ pASswOrD

/user:TechyVITAdmin /persistent:yes

Step 2: Save the file as mapdrive.bat in the required folder

Step 3: When you require to open the mapped drive or create one you can double click the batch file.

Related Questions