Page 1 of 1 1
Topic Options
#12382 - 2001-09-21 12:32 AM "net use" Printer connections
Anonymous
Unregistered


Hi folks,

It has been a while, but need some help from ya all. Printer probleems seem to appear very often. But I haven't found this one yet.
So here it go...

We decided to choose on witch printer the user may print. So I wrote this little script...Everything works fine..except for one thing. We use Exact 7.1 (all the Dutchfolks here know what it is) for DOS.
Therefore you need to make a "net use :lpt1 \\servername\printername" connection.
Because we are adding those new printers..
the net use connection also has to be established. But when we do this in our script...it fails for our NT workstations.
For Win95 is works fine...
Here's the script...

quote:

CLS

setconsole("hide")


;Verwijder alle Printerconnecties met PDC en SQL-server
If InGroup ("Domain Users")

$ = DelPrinterConnection ("\\MSNSRV\HP4050_IMPAS")
$ = DelPrinterConnection ("\\MSNSRV\HP45MAG")
$ = DelPrinterConnection ("\\MSNSRV\HP4INK")
$ = DelPrinterConnection ("\\MSNSRV\HP4VTEK")
$ = DelPrinterConnection ("\\MSNSRV\HP5ADM")
$ = DelPrinterConnection ("\\MSNSRV\HP5PROJ")
$ = DelPrinterConnection ("\\MSNSRV\HP5VK1")
$ = DelPrinterConnection ("\\MSNSRV\HP6PICT")
$ = DelPrinterConnection ("\\MSNSRV\HP6PIMPAS")
$ = DelPrinterConnection ("\\MSNSRV\HP8000")
$ = DelPrinterConnection ("\\MSNSRV\HPLJ2100DIR")
$ = ;DelPrinterConnection ("\\MSNSRV\Océ 9400")
$ = DelPrinterConnection ("\\WH-SQL\HP4050_IMPAS")
$ = DelPrinterConnection ("\\WH-SQL\HP45MAG")
$ = DelPrinterConnection ("\\WH-SQL\HP4INK")
$ = DelPrinterConnection ("\\WH-SQL\HP4VTEK")
$ = DelPrinterConnection ("\\WH-SQL\HP5ADM")
$ = DelPrinterConnection ("\\WH-SQL\HP5PROJ")
$ = DelPrinterConnection ("\\WH-SQL\HP5VK1")
$ = DelPrinterConnection ("\\WH-SQL\HP6PICT")
$ = DelPrinterConnection ("\\WH-SQL\HP6PIMPAS")
$ = DelPrinterConnection ("\\WH-SQL\HPLJ2100DIR")

endif


;Maak nieuwe printers aan en zet default printer

If InGroup ("Administrators")
$ = AddPrinterConnection ("\\WH-SQL\HP6PICT")
$ = AddPrinterConnection ("\\WH-SQL\4000REC")
$ = AddPrinterConnection ("\\WH-SQL\HP4050_IMPAS")
$ = AddPrinterConnection ("\\WH-SQL\HP45MAG")
$ = AddPrinterConnection ("\\WH-SQL\HP4INK")
$ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
$ = AddPrinterConnection ("\\WH-SQL\HP5ADM")
$ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
$ = AddPrinterConnection ("\\WH-SQL\HP5VK1")
$ = AddPrinterConnection ("\\WH-SQL\HP6PIMPAS")
$ = AddPrinterConnection ("\\WH-SQL\HPLJ2100DIR")
$ = AddPrinterConnection ("\\MSNSRV\HP8000")
$ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
$ = AddPrinterConnection ("\\MSNSRV\Océ 9400")
$ = setdefaultprinter("\\wh-sql\hp6pict")
endif


If InGroup ("OGG-Engineering")
$ = AddPrinterConnection ("\\MSNSRV\HP8000")
$ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
$ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
$ = setdefaultprinter("\\wh-sql\HP8000")
endif


If InGroup ("OGG-Administratie")
$ = AddPrinterConnection ("\\WH-SQL\HP5ADM")
$ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
$ = setdefaultprinter("\\wh-sql\HP5ADM")
endif


If InGroup ("OGG-KAM_R&D")
$ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
$ = AddPrinterConnection ("\\WH-SQL\HP5ADM")
$ = setdefaultprinter("\\wh-sql\HPLJ5000")
endif


If InGroup ("OGG-Verkoop")
$ = AddPrinterConnection ("\\WH-SQL\HP5VK1")
$ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
$ = setdefaultprinter("\\wh-sql\HP5VK1")
endif


If InGroup ("OGG-Directie")
$ = AddPrinterConnection ("\\WH-SQL\HPLJ2100DIR")
$ = AddPrinterConnection ("\\WH-SQL\HP5VK1")
$ = setdefaultprinter("\\wh-sql\HPLJ2100DIR")
endif


If InGroup ("OGG-Inkoop")
$ = AddPrinterConnection ("\\WH-SQL\HP4INK")
$ = AddPrinterConnection ("\\WH-SQL\4000REC")
$ = setdefaultprinter("\\wh-sql\HP4INK")
endif


If InGroup ("OGG-Magazijn")
$ = AddPrinterConnection ("\\WH-SQL\HP45MAG")
$ = setdefaultprinter("\\wh-sql\HP45MAG")
endif


If InGroup ("OGG-Receptie")
$ = AddPrinterConnection ("\\WH-SQL\4000REC")
$ = setdefaultprinter("\\WH-SQL\4000REC")
endif


If InGroup ("OGG-Projectbureau")
$ = AddPrinterConnection ("\\WH-SQL\4000REC")
$ = setdefaultprinter("\\WH-SQL\4000REC")
endif


If InGroup ("OGG-Projectleiders")
$ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
$ = AddPrinterConnection ("\\MSNSRV\HP8000")
$ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
$ = setdefaultprinter("\\WH-SQL\HP5PROJ")
endif


;LPT1 verwijzing voor Exact


If InGroup ("Administrators")

use lpt1: /d
use lpt1: "\\wh-sql\HP6PICT"
endif


If InGroup ("OGG-Engineering")

use lpt1: /d
use lpt1: "\\MSNSRV\HP8000"
endif

If InGroup ("OGG-Administratie")

use lpt1: /d
use lpt1: "\\WH-SQL\HP5ADM"
endif

If InGroup ("OGG-KAM_R&D")

use lpt1: /d
use lpt1: "\\MSNSRV\HPLJ5000"
endif

If InGroup ("OGG-Verkoop")

use lpt1: /d
use lpt1: "\\MSNSRV\HPLJ5000"
endif

If InGroup ("OGG-Directie")

use lpt1: /d
use lpt1: "\\MSNSRV\HPLJ5000"
endif

If InGroup ("OGG-Inkoop")

use lpt1: /d
use lpt1: "\\WH-SQL\HP4INK"
endif

If InGroup ("OGG-Magazijn")

use lpt1: /d
use lpt1: "\\WH-SQL\HP45MAG"
endif

If InGroup ("OGG-Receptie")

use lpt1: /d
use lpt1: "\\WH-SQL\4000REC"
endif

If InGroup ("OGG-Projectbureau")

use lpt1: /d
use lpt1: "\\WH-SQL\4000REC"
endif


If InGroup ("OGG-Projectleiders")

use lpt1: /d
use lpt1: "\\WH-SQL\HP5PROJ"
endif
exit


The first script I'v e tried, whas like this..

quote:

If InGroup ("OGG-Projectleiders")
$ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
$ = AddPrinterConnection ("\\MSNSRV\HP8000")
$ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
$ = setdefaultprinter("\\WH-SQL\HP5PROJ")
use lpt1: /d
use lpt1: "\\MSNSRV\HPLJ5000"
endif

But it didn't work out either.
Is there annybody with a idea or sollusion?
Let me know

Pascal

[ master of nothing ]

Top
#12383 - 2001-09-24 05:15 PM Re: "net use" Printer connections
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Pascall,
so you might have to decide what OS your script is running on ...
try to search for Radimus' 'what OS Script'

J.

_________________________



Top
#12384 - 2001-09-26 09:49 AM Re: "net use" Printer connections
Anonymous
Unregistered


It is a seperate script witch has been written for Win95 en Winnt. When we call the script on a Win95 station everything works fine. Even the "net use" connection has been made. When we call the same script on a Winnt-ws all the printers have been added but the "net use" connection has been failed.

I haven't been able to see what goes wrong, 'cause the script doesnt report errors. I've been reading the Kix-manual, but as far as I could see, the commands for adding printers are the same for Win95 an Winnt.

So...annybody with another idea so I can solve this problem.

Top
#12385 - 2001-09-26 11:36 AM Re: "net use" Printer connections
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
ok,

simple solutions provided here :

do not use 'net use lpt1 etc' in your winnt script,
there's no need for that !
An addprinterconnection() is way enough , afaik

J.


[edit]
wait a tick ... I never heard of exact 7.1 ... so you say that needs also lpt1 on NT ?
hmm... NT help says :
net use lpt1: \\accounting\laser2

additionaly wrap that in a shell command :

shell '%ComSpec% /C net use lpt1: \\accounting\laser2' should do the job

[ 26 September 2001: Message edited by: jpols ]

_________________________



Top
#12386 - 2001-09-26 11:47 AM Re: "net use" Printer connections
Anonymous
Unregistered


I don't think you get the problem.

We MUST make a "net use" connection. I explaned it above. But here again.

We work with a DOS-application (its called Exact) Wehn you want to print in this application, you cannot simple print to a network printer. DOS doesn't recognize that (I guess you know that) To simmulate DOS that there is a printer connected to his LPT1-port, you've got to make this "net use" connection. In the DOS-box you easaly type:

quote:
net use lpt1 \\msnsrv\hp500n

In this DOS application you tell it to print directly to LPT1. 'Cause you made this "net use" connection now he's able to print on a networkprinter.
When we leave this "net use" command away in ou rscript, the users wo'nt be able to print.
Thatswhy we do need this connection.

Hope you understand what I mean...

Pascal

Top
#12387 - 2001-09-27 12:03 AM Re: "net use" Printer connections
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Pascall,

have you read the edited reply above ?
Try this !

J.

_________________________



Top
#12388 - 2001-09-27 12:26 AM Re: "net use" Printer connections
Anonymous
Unregistered


My response whas a bit to fast. But I've got a chance to explane the problem just fine

And Yes..I've been editing the whole script and tryed it at a WS from a simple user...and guess...it seems to work..!!
I'll let the script run when the users log-in next day..so we'll see how it works out.

When it doesn't work...you'll see me here again. 10x again.

Pascal

Top
#12389 - 2001-09-27 12:56 AM Re: "net use" Printer connections
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
AVE PASCALL !
MORITURI TE SALUTANT !!!
_________________________



Top
#12390 - 2001-10-02 11:45 AM Re: "net use" Printer connections
Anonymous
Unregistered


I'm so sorry..I've tried the script at several users, but it still seems not to work.

Anybody else with another fine idea???

Pascal

Top
#12391 - 2001-10-03 12:06 AM Re: "net use" Printer connections
Anonymous
Unregistered


Pascall
To help you further I think we need to see what is in @error (and @serror) after the USE command is issued
We do this sort of thing, so I know it should work.

Lets use your simple script as a testbed.

like

code:
  
If InGroup ("OGG-Projectleiders")
$ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
$ = AddPrinterConnection ("\\MSNSRV\HP8000")
$ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
$ = setdefaultprinter("\\WH-SQL\HP5PROJ")
use lpt1: /d
use lpt1: "\\MSNSRV\HPLJ5000"
? "ERROR IS @ERROR"
? "SERROR IS @SERROR"
endif

Tell us what you get...

Mark

Top
#12392 - 2001-10-02 02:37 PM Re: "net use" Printer connections
Anonymous
Unregistered


We'll again I've been testing it, and now I'm pritty sure of it...it works..!
Tomorrow we'll know it for sure, cause then everyon has passed the script.

But some questions are left over.
Does this script also work on win95 stations.
And what does:
? "ERROR IS @ERROR"
? "SERROR IS @SERROR"
means.. I can't figure it out.

Thanx again
Pascal

Top
#12393 - 2001-10-02 02:49 PM Re: "net use" Printer connections
Anonymous
Unregistered


Pascal

Hmmm, very strange. The two lines I added just display the error code (would be zero if all went well, but something else if not), and a textual description of the error code.

I dont think that this has actually solved your problem - maybe the root cause lies somewhere else.
Keep the two lines in, and if @error shows a non zero code - this will help you diagnose the fault.


regards
Mark

Top
#12394 - 2001-10-02 04:27 PM Re: "net use" Printer connections
Anonymous
Unregistered


Mmm..forgot to mention it...
When passing the script, I see a "0" in the sreen. Which means that everything went well.
I could figure that out my self..

O.k let ya all know the final result.

Pascal

Top
#12395 - 2001-10-21 06:14 AM Re: "net use" Printer connections
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Pascall,

We don't know of your problem has been fixed?
We know the program Exact, but does Exact still support the DOS
version? Most other companies with accounting/bookkeeping systems are migrating
to windows during the Euro migation phase?

We have add some debug code to your script. The output will be written to
the local file c:\kix-info.log
It will show:

  • which lines were executed.
  • what was the time of execution.
  • what was the error status from previous line

We prepare it with our tool kixstrip and we are using the option /debug.

The new code is:

code:

CLS
COLOR C+/N
AT (1,1) " "
IF RedirectOutput("c:\kix-info.log")
ENDIF
? "-"+@date+" "+@time+"- Script "+@kix+" starting."
?"- 1-"+@time+"- @error @serror "? CLS
?"- 2-"+@time+"- @error @serror "? setconsole("hide")
?"- 3-"+@time+"- @error @serror "?
?"- 4-"+@time+"- @error @serror "? ;Verwijder alle Printerconnecties met PDC en SQL-server
?"- 5-"+@time+"- @error @serror "? IF InGroup ("Domain Users")
?"- 6-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP4050_IMPAS")
?"- 7-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP45MAG")
?"- 8-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP4INK")
?"- 9-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP4VTEK")
?"- 10-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP5ADM")
?"- 11-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP5PROJ")
?"- 12-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP5VK1")
?"- 13-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP6PICT")
?"- 14-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP6PIMPAS")
?"- 15-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HP8000")
?"- 16-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\MSNSRV\HPLJ2100DIR")
?"- 17-"+@time+"- @error @serror "? $ = ;DelPrinterConnection ("\\MSNSRV\Oc‚ 9400")
?"- 18-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP4050_IMPAS")
?"- 19-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP45MAG")
?"- 20-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP4INK")
?"- 21-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP4VTEK")
?"- 22-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP5ADM")
?"- 23-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP5PROJ")
?"- 24-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP5VK1")
?"- 25-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP6PICT")
?"- 26-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HP6PIMPAS")
?"- 27-"+@time+"- @error @serror "? $ = DelPrinterConnection ("\\WH-SQL\HPLJ2100DIR")
?"- 28-"+@time+"- @error @serror "? ENDIF
?"- 29-"+@time+"- @error @serror "?
?"- 30-"+@time+"- @error @serror "? ;Maak nieuwe printers aan en zet default printer
?"- 31-"+@time+"- @error @serror "? IF InGroup ("Administrators")
?"- 32-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP6PICT")
?"- 33-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\4000REC")
?"- 34-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP4050_IMPAS")
?"- 35-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP45MAG")
?"- 36-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP4INK")
?"- 37-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
?"- 38-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5ADM")
?"- 39-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
?"- 40-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5VK1")
?"- 41-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP6PIMPAS")
?"- 42-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HPLJ2100DIR")
?"- 43-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\HP8000")
?"- 44-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
?"- 45-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\Oc‚ 9400")
?"- 46-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\hp6pict")
?"- 47-"+@time+"- @error @serror "? ENDIF
?"- 48-"+@time+"- @error @serror "?
?"- 49-"+@time+"- @error @serror "? IF InGroup ("OGG-Engineering")
?"- 50-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\HP8000")
?"- 51-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
?"- 52-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
?"- 53-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\HP8000")
?"- 54-"+@time+"- @error @serror "? ENDIF
?"- 55-"+@time+"- @error @serror "?
?"- 56-"+@time+"- @error @serror "? IF InGroup ("OGG-Administratie")
?"- 57-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5ADM")
?"- 58-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
?"- 59-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\HP5ADM")
?"- 60-"+@time+"- @error @serror "? ENDIF
?"- 61-"+@time+"- @error @serror "?
?"- 62-"+@time+"- @error @serror "? IF InGroup ("OGG-KAM_R&D")
?"- 63-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
?"- 64-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5ADM")
?"- 65-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\HPLJ5000")
?"- 66-"+@time+"- @error @serror "? ENDIF
?"- 67-"+@time+"- @error @serror "?
?"- 68-"+@time+"- @error @serror "? IF InGroup ("OGG-Verkoop")
?"- 69-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5VK1")
?"- 70-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\HPLJ5000")
?"- 71-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\HP5VK1")
?"- 72-"+@time+"- @error @serror "? ENDIF
?"- 73-"+@time+"- @error @serror "?
?"- 74-"+@time+"- @error @serror "? IF InGroup ("OGG-Directie")
?"- 75-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HPLJ2100DIR")
?"- 76-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5VK1")
?"- 77-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\HPLJ2100DIR")
?"- 78-"+@time+"- @error @serror "? ENDIF
?"- 79-"+@time+"- @error @serror "?
?"- 80-"+@time+"- @error @serror "? IF InGroup ("OGG-Inkoop")
?"- 81-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP4INK")
?"- 82-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\4000REC")
?"- 83-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\HP4INK")
?"- 84-"+@time+"- @error @serror "? ENDIF
?"- 85-"+@time+"- @error @serror "?
?"- 86-"+@time+"- @error @serror "? IF InGroup ("OGG-Magazijn")
?"- 87-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP45MAG")
?"- 88-"+@time+"- @error @serror "? $ = setdefaultprinter("\\wh-sql\HP45MAG")
?"- 89-"+@time+"- @error @serror "? ENDIF
?"- 90-"+@time+"- @error @serror "?
?"- 91-"+@time+"- @error @serror "? IF InGroup ("OGG-Receptie")
?"- 92-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\4000REC")
?"- 93-"+@time+"- @error @serror "? $ = setdefaultprinter("\\WH-SQL\4000REC")
?"- 94-"+@time+"- @error @serror "? ENDIF
?"- 95-"+@time+"- @error @serror "?
?"- 96-"+@time+"- @error @serror "? IF InGroup ("OGG-Projectbureau")
?"- 97-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\4000REC")
?"- 98-"+@time+"- @error @serror "? $ = setdefaultprinter("\\WH-SQL\4000REC")
?"- 99-"+@time+"- @error @serror "? ENDIF
?"- 100-"+@time+"- @error @serror "?
?"- 101-"+@time+"- @error @serror "? IF InGroup ("OGG-Projectleiders")
?"- 102-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP5PROJ")
?"- 103-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\MSNSRV\HP8000")
?"- 104-"+@time+"- @error @serror "? $ = AddPrinterConnection ("\\WH-SQL\HP4VTEK")
?"- 105-"+@time+"- @error @serror "? $ = setdefaultprinter("\\WH-SQL\HP5PROJ")
?"- 106-"+@time+"- @error @serror "? ENDIF
?"- 107-"+@time+"- @error @serror "?
?"- 108-"+@time+"- @error @serror "? ;LPT1 verwijzing voor Exact
?"- 109-"+@time+"- @error @serror "?
?"- 110-"+@time+"- @error @serror "? IF InGroup ("Administrators")
?"- 111-"+@time+"- @error @serror "? USE lpt1: /d
?"- 112-"+@time+"- @error @serror "? USE lpt1: "\\wh-sql\HP6PICT"
?"- 113-"+@time+"- @error @serror "? ENDIF
?"- 114-"+@time+"- @error @serror "?
?"- 115-"+@time+"- @error @serror "? IF InGroup ("OGG-Engineering")
?"- 116-"+@time+"- @error @serror "? USE lpt1: /d
?"- 117-"+@time+"- @error @serror "? USE lpt1: "\\MSNSRV\HP8000"
?"- 118-"+@time+"- @error @serror "? ENDIF
?"- 119-"+@time+"- @error @serror "? IF InGroup ("OGG-Administratie")
?"- 120-"+@time+"- @error @serror "? USE lpt1: /d
?"- 121-"+@time+"- @error @serror "? USE lpt1: "\\WH-SQL\HP5ADM"
?"- 122-"+@time+"- @error @serror "? ENDIF
?"- 123-"+@time+"- @error @serror "? IF InGroup ("OGG-KAM_R&D")
?"- 124-"+@time+"- @error @serror "? USE lpt1: /d
?"- 125-"+@time+"- @error @serror "? USE lpt1: "\\MSNSRV\HPLJ5000"
?"- 126-"+@time+"- @error @serror "? ENDIF
?"- 127-"+@time+"- @error @serror "? IF InGroup ("OGG-Verkoop")
?"- 128-"+@time+"- @error @serror "? USE lpt1: /d
?"- 129-"+@time+"- @error @serror "? USE lpt1: "\\MSNSRV\HPLJ5000"
?"- 130-"+@time+"- @error @serror "? ENDIF
?"- 131-"+@time+"- @error @serror "? IF InGroup ("OGG-Directie")
?"- 132-"+@time+"- @error @serror "? USE lpt1: /d
?"- 133-"+@time+"- @error @serror "? USE lpt1: "\\MSNSRV\HPLJ5000"
?"- 134-"+@time+"- @error @serror "? ENDIF
?"- 135-"+@time+"- @error @serror "? IF InGroup ("OGG-Inkoop")
?"- 136-"+@time+"- @error @serror "? USE lpt1: /d
?"- 137-"+@time+"- @error @serror "? USE lpt1: "\\WH-SQL\HP4INK"
?"- 138-"+@time+"- @error @serror "? ENDIF
?"- 139-"+@time+"- @error @serror "? IF InGroup ("OGG-Magazijn")
?"- 140-"+@time+"- @error @serror "? USE lpt1: /d
?"- 141-"+@time+"- @error @serror "? USE lpt1: "\\WH-SQL\HP45MAG"
?"- 142-"+@time+"- @error @serror "? ENDIF
?"- 143-"+@time+"- @error @serror "? IF InGroup ("OGG-Receptie")
?"- 144-"+@time+"- @error @serror "? USE lpt1: /d
?"- 145-"+@time+"- @error @serror "? USE lpt1: "\\WH-SQL\4000REC"
?"- 146-"+@time+"- @error @serror "? ENDIF
?"- 147-"+@time+"- @error @serror "? IF InGroup ("OGG-Projectbureau")
?"- 148-"+@time+"- @error @serror "? USE lpt1: /d
?"- 149-"+@time+"- @error @serror "? USE lpt1: "\\WH-SQL\4000REC"
?"- 150-"+@time+"- @error @serror "? ENDIF
?"- 151-"+@time+"- @error @serror "?
?"- 152-"+@time+"- @error @serror "? IF InGroup ("OGG-Projectleiders")
?"- 153-"+@time+"- @error @serror "? USE lpt1: /d
?"- 154-"+@time+"- @error @serror "? USE lpt1: "\\WH-SQL\HP5PROJ"
?"- 155-"+@time+"- @error @serror "? ENDIF
?"- 156-"+@time+"- @error @serror "? EXIT

When you have still problems you need to run above script and please put
the contents of file c:\kix-info.log on the board.
Greetings.

btw: kixstrip.exe you can find on our site http://home.wanadoo.nl/scripting

Symbol on our homepage has been linked to related http://kixtart.org topic.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#12396 - 2001-11-01 07:30 AM Re: "net use" Printer connections
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

What is the current result? Works everything fine now?
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#12397 - 2001-11-01 08:16 AM Re: "net use" Printer connections
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

See our latest reaction to topic http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=003419
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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

Generated in 0.483 seconds in which 0.458 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