on my windows 7 x64 , i'm trying to execute this command :
net use \\localhost\c$
But the command fail with the error 1231, Network location cannot be reached.
I've tried to re create again the admin share c$ (c:) , but it's the same situation.
On another Windows 7 machine , this command is completed successfully.
What can i do ?
Thank you !
Best Answer
The command fail with the error 1231, Network location cannot be reached
The above command is invalid as the syntax is incorrect.
You are missing a
device
name.computername
(in this caselocalhost
) should start with two backslashes\\
(this is the actual cause of the error).That is not possible as it is an invalid command.
Try the following command (replace the drive letter as appropriate):
You could also use:
but this seems a pointless command as this is creating a remote reference (to a local resource) that has no local reference (
device name
) that can actually refer to it.Example:
Syntax
Further Reading