Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

up vote 21 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
add comment

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
add comment

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

screenshot

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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