First, open up Notepad or your favorite text editor.
Next, copy the commands as shown below and paste them into the file. Don't forget to modify the net use command with the drive letter you want to use, the name of the Computer and share you want to map a drive to, and password and account name.
ECHO Starts Mapping Drive
net use W: file://computer1/Test
net use X: file://computer2/NewFolder
exit
Then save the file with any name and a .bat extension
When you need to map the drive(s), just double click on it.
Next, copy the commands as shown below and paste them into the file. Don't forget to modify the net use command with the drive letter you want to use, the name of the Computer and share you want to map a drive to, and password and account name.
ECHO Starts Mapping Drive
net use W: file://computer1/Test
net use X: file://computer2/NewFolder
exit
Then save the file with any name and a .bat extension
When you need to map the drive(s), just double click on it.
0 comments:
Post a Comment