login script with spaces in share name do not map

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a very simple login script to map drives to shared folders on the
server. Any share names that include spaces in the name will not map through
the login script. What is the syntax for share names with spaces? I am sure
there is something very simple I am missing.
 
I have a very simple login script to map drives to shared folders on
the server. Any share names that include spaces in the name will not
map through the login script. What is the syntax for share names with
spaces? I am sure there is something very simple I am missing.

Yep, it is simple. You just need quotes. This goes for all dos based
commands as well.

net use z: "\\server\share name"

Cheers,

Lara
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top