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.