Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

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?
0
mhmservices
Asked:
mhmservices
  • 2
2 Solutions
 
t0t0Commented:
enclose the names in double-quotes as in:

   cannon on lpt1

becomes:

   "cannon on lpt1"
0
 
halejr1Commented:
0
 
t0t0Commented:
Yippee!! I've scored some points today! Thank you.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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