I am coding on something and want to map \cygwin\home\bob\code\ to U: drive letter. When I try to map it using net use C:\cygwin\home\bob\code\ U: /P:yes , but it gave the following error:

System error 67 has occurred
The network name cannot be found

But it's not actually a network path I'm trying to map. How do I do this?

4 Answers 4


If it is only local what you need, try subst.

subst u: C:\cygwin\home\bob\code\
  • Bingo!! I knew there was a way. Jun 21, 2011 at 13:48
  • 1
    I got problems if I had a trailing backslash - if it doesn't work try it without. Then punch the screen. Then correct your sprelling.
    – CAD bloke
    Feb 17, 2013 at 23:44
  • It it normal that those virtual drives do not show-up in the Windows Explorer (Win10 1803)?
    – Robert
    Sep 13, 2018 at 7:22

Use vSubst. It is like the subst command line tool, but it has a UI and is persistent.



When you map drives they must be mapped to a SHARED network folder. You are trying to map to a local path, it won't work. Instead try sharing the Code folder then use this:

net use u: \\yourpcname\code /p:yes

  • You need two \\ marks, not one.
    – KCotreau
    Jun 21, 2011 at 13:12
  • In the editor it had two but for some reason only displayed the one ;-)
    – Mucker
    Jun 21, 2011 at 13:27
  • I was going to let you do it, but I fixed your code.
    – KCotreau
    Jun 21, 2011 at 13:39
  • This does what I want, but is there a way to "share" folder without anyone on another computer able to view it? In case I need to know that later. Jun 21, 2011 at 13:46
  • nvm, see Roald's answer. Jun 21, 2011 at 13:48

The best way to do this across bootup is to put it in the registry. Open regedit.exe by pressing Win + R and typing regedit then hit Enter or click OK. Navigate to HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ DOS Devices

Add a new string that is a REG_SZ value. Name it X: where X is your drive letter The value should be the path you want mapped to that drive letter, in this form:


  • Please read the question again carefully. Your answer does not answer the original question.
    – DavidPostill
    Feb 28, 2016 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.