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?

link|improve this question

feedback

3 Answers

up vote 6 down vote accepted

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

subst u: C:\cygwin\home\bob\code\
link|improve this answer
Bingo!! I knew there was a way. – Thr4wn Jun 21 '11 at 13:48
feedback

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

link|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. – Thr4wn Jun 21 '11 at 13:46
nvm, see Roald's answer. – Thr4wn Jun 21 '11 at 13:48
feedback

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

screenshot

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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