Y
Y
Yuri2018-09-20 10:20:59
Computer networks
Yuri, 2018-09-20 10:20:59

What is the correct way to use net use?

I made a bat file for connecting network drives:

@ECHO OFF
net use * /delete /yes
net use x: \\192.168.10.6\фото-видео /user:admin admin /Persistent:Yes
net use y: \\192.168.10.6\share /Persistent:Yes
net use z: \\192.168.10.6\students /Persistent:Yes

it turned out what is on the screen: 5ba345a603de4552328787.jpeg
Hence a few questions:
1. disk x: has the name "PHOTO". Where did he get it from? Why not "photo-video (\\192.168.10.6\)"
2. drives y: and z: are named the same, but lead to different folders. Why? how to make different names - "share" and "students" respectively?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moskus, 2018-09-20
@yuriknsk

The answer is very simple.
Because the name of the disk has nothing to do with the path to it. It is related to what name you gave this share when you created it on the host where it is located. Screenshot of their WinXP, but there is no fundamental difference.
Now, if you write something else instead of share (by default), it will be displayed differently than now.

S
Sergey Ryzhkin, 2018-09-20
@Franciz

net use - cannot give aliases to mapped drives. You just write down the network, and let the letter be assigned. To display a different name, it must be specified in the properties of the balls.
Or connect disks through GPO, there is an opportunity to specify how this folder / disk / label will be displayed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question