Printer Share names in Printer Btach Script

I'm writing a printer install/rename/delete batch script and I noticed that some of the printers installed long ago have spaces in the share name. Will this cause problems for my vbs script? If so, is there a way for me to overcome them?
mhmservicesAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
t0t0Connect With a Mentor Commented:
enclose the names in double-quotes as in:

   cannon on lpt1

becomes:

   "cannon on lpt1"
0
 
halejr1Connect With a Mentor Commented:
0
 
t0t0Commented:
Yippee!! I've scored some points today! Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.