Solved

Printer Share names in Printer Btach Script

Posted on 2009-04-14
3
215 Views
Last Modified: 2012-05-06
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
Comment
Question by:mhmservices
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
t0t0 earned 250 total points
ID: 24136736
enclose the names in double-quotes as in:

   cannon on lpt1

becomes:

   "cannon on lpt1"
0
 
LVL 8

Assisted Solution

by:halejr1
halejr1 earned 250 total points
ID: 24136757
0
 
LVL 16

Expert Comment

by:t0t0
ID: 24140480
Yippee!! I've scored some points today! Thank you.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

856 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