Page 2 of 2 <12
Topic Options
#193876 - 2009-05-14 05:17 PM Re: Changing the Mapped Printers Servername [Re: Glenn Barnas]
nige1979 Offline
Fresh Scripter

Registered: 2009-05-14
Posts: 24
Loc: United Kingdom
Ok it doesnt even do it in batches of 4 !!! i just ran it on a pc that had 4 mapped printers.... the 1st time it changed 2 printers the 2nd time it changed 1 and the 3rd time it changed the last printer.....
Top
#193878 - 2009-05-14 06:01 PM Re: Changing the Mapped Printers Servername [Re: nige1979]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
OK - I added some printers from our old print server and ran the code. It seems that the index of printers being enumerated from the registry is changing. I updated the code to restart the enumeration each time a change is made and it has successfully moved all 3 printers (of the 7 total) in one pass.

My original post is updated.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193881 - 2009-05-14 06:52 PM Re: Changing the Mapped Printers Servername [Re: Glenn Barnas]
nige1979 Offline
Fresh Scripter

Registered: 2009-05-14
Posts: 24
Loc: United Kingdom
Glenn and co, I cannot thank you enough for your help. Works a dream now...

Great site and great support and help from the Mods... Keep up the good work....

Top
#193882 - 2009-05-14 07:15 PM Re: Changing the Mapped Printers Servername [Re: nige1979]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Great - thanks for the follow-up!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

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 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.116 seconds in which 0.082 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