Page 1 of 1 1
Topic Options
#168309 - 2006-09-22 04:32 PM Determine if network printer is installed on the workstation.
Daniel_007 Offline
Fresh Scripter

Registered: 2004-07-13
Posts: 6
Is there a way to determine if a network printer is installed on the workstation?

I am making a script that will setup a profile for users when they log on to the workstation for the first time. I have about 10+ printers I need to setup for the users, however I do not want to install / change printers for people that already have them setup. ie, If the printer is already installed I don't want to reinstall it (will take time and mess up the default printers).

is this possible? I've been searching but cannot find it in the documentation, I will take a look in the UDF's

Top
#168310 - 2006-09-22 04:33 PM Re: Determine if network printer is installed on the workstation.
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You could check this registry key.

Quote:


HKEY_CURRENT_USER\Printers\Connections



_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#168311 - 2006-09-22 04:41 PM Re: Determine if network printer is installed on the workstation.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
There are UDFs as well that do that.
Top
#168312 - 2006-09-22 05:34 PM Re: Determine if network printer is installed on the workstation.
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
PriMapState() UDF
Top
#168313 - 2006-09-22 06:54 PM Re: Determine if network printer is installed on the workstation.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
PriMapState() - Checks for existent printerconnection
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=82672


EnumPrinterConnections2() - Enumerates all connected printers
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=137527

Top
#168314 - 2006-09-25 04:22 PM Re: Determine if network printer is installed on the workstation.
Daniel_007 Offline
Fresh Scripter

Registered: 2004-07-13
Posts: 6
Thanks, I was away for the weekend, but now hard at work trying to finish this logon script.
I will take a look at the UDFs.

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.063 seconds in which 0.032 seconds were spent on a total of 12 queries. Zlib compression enabled.

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