logon script character spacing

Posted on 2005-04-20
Last Modified: 2010-03-18
I've got the following in a file called health.bat

net use h: \\myserver\health


The script maps the health department's drive to the user's comptuer and then processes the other (login.bat) logon script which syncrhronizes the time to the server and maps the user's home drive.

Here is the question, problem...

I want to map a folder (drive) called "Patient Data" and I tried it as follows, but it doesn't work.

net use p: \\myserver\Patient Data

Am I supposed to put some kind of special character between the two words "Patient" and "Data" to represent a character space? The folder (drive) on the server is with a space.

Help would be appreciated.

Question by:killyman
    LVL 6

    Assisted Solution

    One of the two i think

    net use p: \\myserver\"Patient Data"

    net use p: "\\myserver\Patient Data"
    LVL 19

    Expert Comment

    The former should work.
    LVL 19

    Accepted Solution

    *thinks* latter...former...

    Make that the latter one (net use p: "\\myserver\Patient Data"), sorry. :)

    Author Comment

    Thank you both!

    The following worked!

    net use p: "\\myserver\Patient Data"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
    Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now