Can't cygwin bash run net use / user?

I run "net use / user:" Someone "\ somewhere" and it works well with cmd.exe.

With the same cmd.exe, run 'bash --login -i' to use cygwin / bash and run the same command, but I get the error message as follows.

System error 67 occurred.

Cannot find the network name.

Why can't I run net use / user command with cygwin / bash?

+3
source share
2 answers

In cygwin bash, you need to avoid any of these forward backslashes, since they are interpreted as escape characters.

try it

net use /user:"Someone" \\\\server\\share

,

net use /user:"Someone" '\\server\share'

+11

/delete bash Windows. , Windows .

, , " " cmd.exe, . cmd.exe , , .

$ cmd "/c net use T: /delete"
+3

Source: https://habr.com/ru/post/1732224/


All Articles