Page 1 of 1 1
Topic Options
#72022 - 2002-12-05 04:51 PM Printers
Josh Davis Offline
Lurker

Registered: 2002-12-05
Posts: 2
Is there a way to delete all the installed printers when a user logs in without knowing the printer names?

[ 05. December 2002, 16:52: Message edited by: Josh Davis ]

Top
#72023 - 2002-12-05 04:53 PM Re: Printers
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
DelPrinterConnection("")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#72024 - 2002-12-05 04:55 PM Re: Printers
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Or UnmapPrinters() - Removes mapped printers not listed in an .INI file
_________________________
There are two types of vessels, submarines and targets.

Top
#72025 - 2002-12-05 05:06 PM Re: Printers
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
or delprinterconnections

from kixlib.com [Smile]

which does the same as les' suggestion but the hardway [Wink]
_________________________
!

download KiXnet

Top
#72026 - 2002-12-05 05:32 PM Re: Printers
Josh Davis Offline
Lurker

Registered: 2002-12-05
Posts: 2
Thanks for the quick responses.

All I get with the DelPrinterConnection("") is an 1801 displayed, any idea what that could be?

Top
#72027 - 2002-12-05 05:55 PM Re: Printers
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
quote:
1801L ERROR_INVALID_PRINTER_NAME
_________________________
We all live in a Yellow Subroutine...

Top
#72028 - 2002-12-05 09:41 PM Re: Printers
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jens, should that work?
haven't tested it even once...
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 878 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.053 seconds in which 0.023 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