Page 2 of 2 <12
Topic Options
#195865 - 2009-09-10 09:27 PM Re: Kix script window up for a long time [Re: Witto]
Gee Offline
Fresh Scripter

Registered: 2009-02-04
Posts: 48
Loc: illinois
Its working great, but one thing is that i think the script is making multiple copies of printers under "printers and faxes"
Top
#195866 - 2009-09-10 10:18 PM Re: Kix script window up for a long time [Re: Gee]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
I don't get it
Every shared printer can only be added once. If it is added a second time, it overwrites the existing one.
I presume that
 Code:
SHELL "CMD.EXE /C rundll32 printui.dll,PrintUIEntry /in /n\\A01\X7665FIN /q"

does the same as
 Code:
$RC = AddPrinterConnection('\\A01\X7665FIN')

PriMapState helps to verify if the printer has been added before to prevent that the printer is added over and over again.

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 370 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.05 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