[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

logon script character spacing

I've got the following in a file called health.bat

net use h: \\myserver\health

\\myserver\netlogon\login.bat

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.

0
killyman
Asked:
killyman
  • 2
2 Solutions
 
bmquintasCommented:
One of the two i think


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

net use p: "\\myserver\Patient Data"
0
 
CoccoBillCommented:
The former should work.
0
 
CoccoBillCommented:
*thinks* latter...former...

Make that the latter one (net use p: "\\myserver\Patient Data"), sorry. :)
0
 
killymanAuthor Commented:
Thank you both!

The following worked!

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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now