Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 23 down vote accepted

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

subst u: C:\cygwin\home\bob\code\
share|improve this answer
Bingo!! I knew there was a way. – Alexander Bird Jun 21 '11 at 13:48
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 '13 at 23:44

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


share|improve this answer

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

share|improve this answer
You need two \\ marks, not one. – KCotreau Jun 21 '11 at 13:12
In the editor it had two but for some reason only displayed the one ;-) – Mucker Jun 21 '11 at 13:27
I was going to let you do it, but I fixed your code. – KCotreau Jun 21 '11 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. – Alexander Bird Jun 21 '11 at 13:46
nvm, see Roald's answer. – Alexander Bird Jun 21 '11 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:


share|improve this answer
Please read the question again carefully. Your answer does not answer the original question. – DavidPostill Feb 28 at 18:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .