Page 1 of 1 1
Topic Options
#119080 - 2004-05-05 09:30 PM Issue mapping Printer on WinXP and Win2k
Kreth Offline
Lurker

Registered: 2004-05-05
Posts: 2
New Kixtart user here. I was able to get a simple script up and running to map drivers and user shares based on group memberships. However, I ran into trouble when I decided to expand into mapping printer. Here is my test code:
Code:
;Map Canon Users to Canon Shares
IF INGROUP("Canon Print")
use lpt2: "\\mamco-pdc\canon print"
IF @error = 0
? "Canon Printer Mapped."
ELSE
? "ERROR - Printer not mapped."
ENDIF
ENDIF


Under Win2k, when I step through my script in debug mode, I see the msg "Canon Printer Mapped." However, the printer is not listed under Printers. Under XP, I get the error message from my code. I have checked the permissions on the print server (2003 server), and Everyone has at least Print permissions. And yes, the user account I'm testing with is a member of the proper group.
Any suggestions?

Top
#119081 - 2004-05-05 09:43 PM Re: Issue mapping Printer on WinXP and Win2k
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
look at the addprinterconnection() command
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#119082 - 2004-05-05 09:51 PM Re: Issue mapping Printer on WinXP and Win2k
Kreth Offline
Lurker

Registered: 2004-05-05
Posts: 2
Thx for the quick response. I had tried that before, apparently my syntax was off, as it worked like a charm this time.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, 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.058 seconds in which 0.031 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