Page 1 of 1 1
Topic Options
#62566 - 2002-01-30 03:50 PM printers for windows environment
Anonymous
Unregistered


hello, I have a problem (actually an inconvenience) about mapping printers for groups of users. We have a windows 9X windows NT/2000 environment and we already placed the printers to each individual users manually. However, as we add new print devices, it is very inconvenient to install them for the users manually. Can you show me an example script that can be executed so whichever group the user is in, that user will get the printers? Thanks alot for your help.
Top
#62567 - 2002-01-30 04:29 PM Re: printers for windows environment
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
code:

if ingroup("group1")<>0
$retcode=addprinterconnection("\\server\printer")
endif

This will install the printer drivers automatically in Windows NT/2000. There is no way to automatically update printer drivers under Windows 9x. The drivers must be installed manually. I remember that there was an attempt to do this with Kixtart and a lot of SENDKEYS() commands but I don't know if the solution worked reliably.

_________________________
There are two types of vessels, submarines and targets.

Top
#62568 - 2002-01-30 05:09 PM Re: printers for windows environment
Anonymous
Unregistered


Thanks sealeopard, how about deleting a printer that no longer exists, or setting up a default printer?
Top
#62569 - 2002-01-30 11:26 PM Re: printers for windows environment
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Look up in the manual:

ADDPRINTERCONNECTION()
DELPRINTERCONNECTION()
SETDEFAULTPRINTER()

There are also example code fragments for these commands.

_________________________
There are two types of vessels, submarines and targets.

Top
#62570 - 2002-01-31 05:25 AM Re: printers for windows environment
Anonymous
Unregistered


I didn't realize they exist in the manual well thanks again sea, next time I won't let my digi-pet eat my homework.

Although a question regarding commands I thought you may be aware of some variations of codes, like with the "use" command with /del switch using wildcards to delete known map drives. I was wondering if they are possible through the delprinterconnection? Maybe a function command compiled somewhere in this board to do such a task...I'll see if I can find some. This is probably a stupid question that i hope you can answer, thanks a bunch.

Top
#62571 - 2002-02-03 10:15 PM Re: printers for windows environment
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
We're working also with Win9x workstations and we made it work as follows (via the login script):
1. We automtically copy all the used drivers to the workstation, depending on a version file on the workstation and on the server. All the installable printers are placed in the msprint.inf (64k limit !).
2. We made a instprn and a delprint executable (delphi) which deleted all the printers and adds a set of definable printers (they have to be in the msprint.inf). The printers are defined in a simple .txt file, which contains the UNC, printer name, printer driver description, and, optionally, a second UNC if the first one failes.

This is the only way it's gonna work under Win9x.

_________________________
Kind regards,

Top
#62572 - 2002-02-05 06:26 PM Re: printers for windows environment
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Use
code:
$=DelPrinterConnection("")


to delete all the currecnt connections, if that's what you want ?
_________________________
Kind regards,

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 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.067 seconds in which 0.037 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