Solved

Printer Share names in Printer Btach Script

Posted on 2009-04-14
3
213 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now