I tried to map disk D with the next command in Command Prompt "net use Y: \ComputerName\D$" and I get errors. Can you help me with the correct syntax? But if I want to map a folder let's say Share from disk D. When I map disk D from Explorer with Map Network Drive utility everythings is fine, but not when I am trying with cmd.
Asked
Active
Viewed 52 times
-1
-
1Try `net use Y: \\ComputerName\D$` (or `net use Y: \\%ComputerName%\D$`?) – JosefZ Jan 25 '21 at 18:26
1 Answers
0
The correct syntax is:
net use Y: \\ComputerName\D$
You were missing a Backslash " \ ". Maybe you want to add the additional parameter /p
to map the network drive permanent.
and I get errors
Which you sadly did no tell us.

bjoster
- 4,805
- 5
- 25
- 33