Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the path of a mapped drive in win7?

enter image description here

Now it's mapped to \\192.168.248.128,how to change it to \\192.168.66.2 instead?

like image 668
gdb Avatar asked Apr 18 '11 07:04

gdb


People also ask

How do I change the path of a mapped drive?

Click the Start menu button, and then click Computer. In the next window, click Map Network Drive. Select the Drive letter that you need to change with a new server path. Note: If you cannot see the path in the Folder box, click on the down-arrow and select the path displayed.

How do I find the path of a network drive in Windows 7?

In Windows, if you have mapped network drives and you don't know the UNC path for them, you can start a command prompt (Start → Run → cmd.exe) and use the net use command to list your mapped drives and their UNC paths: C:\>net use New connections will be remembered.

How do I Map a network drive in Windows 7 to Windows 10?

Click on the file explorer icon in your taskbar or hit Windows Key and the E key at the same time. Click on This PC on the left side task bar, then at the top of the window click on tab labeled Computer. 2.) Click the Map network drive button in the ribbon menu at the top, then select "Map network drive."


2 Answers

If you want to use the command line have a look to the next answer below!

But you can also edit the settings in Windows Registry: 'HKEY_CURRENT_USER\Network\[Drive letter]'

When you now open a new 'My Computer' window - after changing the target in registry - you will likely see the old settings, but that is only a visual problem. Try to open the entry, and it should work!

Have a look to Chris Budys interesting comment below, that fixes obviously the visual problem.

like image 157
oo_dev Avatar answered Sep 21 '22 22:09

oo_dev


net use can modify a drive in place without deleting and recreating. You simply execute the command as if you're mapping a new drive, and it replaces it instead. The command syntax is:

net use [Drive name] [UNC path] 

Example:

C:\> net use U: \\192.168.66.2 U: has a remembered connection to \\192.168.248.128. Do you want to overwrite the remembered connection? (Y/N) [Y]: y The command completed successfully. 
like image 23
jpmc26 Avatar answered Sep 19 '22 22:09

jpmc26