Maping shared folders

jvillareal78 used Ask the Experts™
I have created a bat file to use with active dicrectory scripts to map network shares
@echo off
net use /persistent:yes
net use n: \\ptisql\DiamondD
net use t: \\ptiwest\Student Services
net use x: \\ptiwest\Common
all work except for net use t: \\ptiwest\Student Services, I think I might need to use the short name for the share but not sure. Renaming the folder is not an option.

Thanks in advance
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
you have a space in the destination try this \\"ptiwest\Student Services"


Using the quotations did not work.

I may have the quotes wrong, been a while sicne i had to script an add.
\\ptiwest\"Student Services" This should work if not try
"\\ptiwest\Student Services"


This is the error I get every time

H:\>net use t: \\ptiwest\"Student Services"
System error 53 has occurred.

The network path was not found.
Jackie Man IT Manager
Top Expert 2010
net use t: "\\ptiwest\Student Services"

The above should work.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial