Map a network drive to use it from File Explorer in Windows without having to search for it or type in a network address every time. Mapping a network drive to a shared folder from the Windows GUI is easy. It is enough to use Windows Explorer to find the desired folder and find the buttons in the main tab Connect as disk… But if you already know the network path for the connected folder, then you can map the network drive even faster using the command line.
By mapping a network drive, we can quickly access a specific network folder. All network drives are displayed in explorer (This computer). Of course, to mount a shared folder as a separate drive, our computer must find these shared folders. Simply put, in the explorer, on the tab “Net“We must have access to folders on other computers on the network, to a network storage device, or a router (if a flash drive or a disk is connected to it).
On the command line, run the following command:
subst Z: C:UsersMAXDesktopcb– where Z is the letter of our new drive, and C: Users MAX Desktop cb is the path to the folder we want to mount
In the same way, you can connect a network folder:
subst Z: \192.168.0.50cbTo disable, use the following command:
subst Z: /D
If the resource you are trying to connect to is protected by authentication and you do not want to enter credentials every time you open a network drive, you can add the username and password to the command using the parameter /user: password.
net use z: \userello-pcfilm /user:userello