Reputation: 916
Intermittently I'm finding that net use doesn't feel like seeing the server in front of it.
The following commmand works:
pushd \\place\otherplace\1.2.0\
Windows explorer also consistently brings me where I want to go.
For some reason, though, the following sometimes returns that the path doesn't exist.
net use R: \\place\otherplace\1.2.0\
What's the difference in implementation for net use
?
Upvotes: 1
Views: 2068
Reputation: 333
Basic difference between pushd
and net use
command is that user gets to choose desired Drive letter in case user needs to right more scripts on that particular Network Drive.
On the other hand, using pushd
in scripts, a user is able to use that drive as well just like cd
command.
Keep in mind that the PushD command allocates drive letters from Z: on down and will use the first unused drive letter that it finds.
Upvotes: 0
Reputation: 916
The practical difference, for anybody writing a script that may come across this, is that pushd
and windows explorer both accept \\path\to\directory\
net use
fails with a trailing slash, and requires \\path\to\directory
Upvotes: 2