
You can map the network drive by using two methods: File Explorer - File Explorer or from the command-prompt command prompt
Turn on network discovery
Before you assign a network drive, we need to turn on Network Discovery so that you can discover other computers in your network.
1. Open the settings and go to "Network & Internet -> Sharing Options."
2. Under the "Network Discovery" section, select the option "Turn on network discovery

3. Click "Save Changes":
Map the network drive using File Explorer - File Explorer
These steps will help you map your network drive in Windows 10 using File Explorer:
1. Open "File Explorer" and click "This Computer - This PC" in the right pane.

2. Select the Computer tab, in the ribbon menu at the top, click Map network drive and choose Map network drive.

3. Select the alphabet to represent the drive folder from the Drive drop-down list. Click Browse. The other computer must be in the network and the Public folder sharing option should be turned on before it appears in the list.

4. In the pop-up window displayed, locate the folder you want to set, and press the OK button after it is selected.

5. Once you confirm your selection, press the "Finish" button in the lower right corner. Note that in the "map network drive" window, you have the option of reconnecting when logging in or using different credentials.
At the end of this process, the new drive will appear at any time you navigate to this PC in File Explorer, and you will be able to access its contents from there.
Map the network drive by using the command prompt
You can achieve the same results that you did by using File Explorer by using a command prompt. Just follow the steps below to map your network drive using your command prompt:
1. Open the command prompt. You can do this simply by typing cmd and clicking the Enter key in the Run window.
2. At the command prompt, type the following command:
net use x: \\ computer name \ sharename

Note that "x" represents the name that you want to assign to the shared folder
3. You can modify the above command slightly to enter some additional settings and you can insert a different set of credentials using the following command:
net use x: \\ computer name \ sharename / user username password
4. After you restart the computer, the drive will no longer be present. To avoid this and always make the drive, you can use the following command:
net use x: \\ computer name \ sharename / P: Yes
5. Using the net use x: / delete command will delete the mapped drive, while using the net use * / delete command will delete all mapped drives.