Computing.Net > Forums > Programming > Install shared printer with START

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Install shared printer with START

Reply to Message Icon

Name: AJ (by William Jimenez)
Date: December 1, 2008 at 07:18:12 Pacific
OS: XP
CPU/Ram: Dell
Comment:

Hello, I have created a batch file that upon executing installs a group of printers from a print sever.

FOR %%A IN (Printer1 Printer2 Printer3) DO START \\MIA-FS2\%%A

It works just fine but after installing the printer the properties of the printer comes up, it is not a big deal but this particular case the batch install 17 printers across an entire building so closing each properties window becomes a pain.

Does anyone know how to avoid this or a way to close the properties of the printer window via batch as well.

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Holla
Date: December 1, 2008 at 21:41:06 Pacific
Reply:

AJ,

If you can form the title of these windows in the batch file, you can close these using a vb script. Let us say the below script is called closeapp.vbs, you can close the printer windows by -
closeapp "HP Laserjet 2020 on MIA\FS2"
(assuming that ""HP Laserjet 2020 on MIA\FS2" is the window title)


With CreateObject("Wscript.Shell")
.Appactivate WScript.Arguments.Item(0)
.Sendkeys "%{F4}"
End With

--
Holla.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Install shared printer with START

XP Command Line www.computing.net/answers/programming/xp-command-line/14307.html

UR:How to Print Word Doc from dos prompt www.computing.net/answers/programming/urhow-to-print-word-doc-from-dos-prompt/1212.html

Installing a Printer via Batch File www.computing.net/answers/programming/installing-a-printer-via-batch-file/17555.html