Page 2 of 2 <12
Topic Options
#170288 - 2006-11-22 12:50 AM Re: Add IP Printer
Lucid Offline
Fresh Scripter

Registered: 2006-09-20
Posts: 11
Ooops. I spoke a little too soon. I've ran the script a couple of times now and it works great. The only issue is that it seems to install the printer everytime its run so I end up with HP Colour (Copy Room) (copy 1) and (copy 2) etc.

I'm assuming that the UDF doesn't check to see if the printer is installed before proceeding. Can you direct me on how to check to see if the printer is installed and then run your UDF if it isn't? Is it some sort of registry check that's needed?

Top
#170289 - 2006-11-22 03:43 AM Re: Add IP Printer
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4566
Loc: USA
The UDF forum is your friend to the rescue.

PrinterExist()

There are probably other ways too, but this should work nicely enough for what you are wanting to do.

Top
#171568 - 2006-12-15 05:13 PM Re: Add IP Printer [Re: Allen]
Lucid Offline
Fresh Scripter

Registered: 2006-09-20
Posts: 11
Thanks once again. The PrinterExist UDF did just the trick.
Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 568 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.054 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org