如何将本地路径映射到 Windows 7 中的驱动器号?

Ale*_*ird 21 windows-7 drive-letter

我正在编码一些东西并想映射\cygwin\home\bob\code\U:驱动器号。当我尝试使用 映射它时net use C:\cygwin\home\bob\code\ U: /P:yes,但出现以下错误:

System error 67 has occurred
The network name cannot be found
Run Code Online (Sandbox Code Playgroud)

但这实际上并不是我要映射的网络路径。我该怎么做呢?

R-D*_*R-D 25

如果它只是您需要的本地文件,请尝试subst.

subst u: C:\cygwin\home\bob\code\
Run Code Online (Sandbox Code Playgroud)