Solved

Printer Share names in Printer Btach Script

Posted on 2009-04-14
3
212 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
Comment Utility
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
Comment Utility
0
 
LVL 16

Expert Comment

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

771 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

11 Experts available now in Live!

Get 1:1 Help Now