Oh, I didn't realize this was a script from the Reskit. Let me see if I
have it... I do. It works fine for me. There's 734 lines in that script.
Damn. Nothing gives you a line number, huh? What OS are you running this
on? It seems that the only objects that are created are
PrintMaster.PrintMaster and Printer.Printer. Whatever they are...
What OS? Service pack level? When I run this on NT4 SP6a, I get the same
error.
Ray at work
Quote:
> Forgive me, I'm not a vbasic programmer although I know how to program in
> visual NWN script. I'm not sure how to answer your question. All I did
was
> type the command at the C prompt in a command line window, hit the Return
> key, and the reply we get at the next C prompt is "Unable to list
printers,
> error code: 0x1A8. Object Required." It looks like this:
> (What I Type)
> c:\cscript prnmgr.vbs -l
> (What we get back)
> c:\Unable to list printers, error code: 0x1A8. Object Required.
> If you want me to list the whole code source of prnmgr.vbs, that would
take
> a couple pages. We get prnmgr.vbs from the Windows 2000 resource kit (more
> info at
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/co...
Quote:
> rofwin/pw0102.asp ). There is an example of a command line using
prnmgr.vbs
> at the page. The command line switch "-l" we are using above just makes
the
> prnmgr.vbs list the printers that the local server has.
> > Code and line number of error?
> > Ray at work
> > > When trying to run a script on a Windows 2000 SP3 server, we get the
> > > following error below:
> > > Command typed in a command-line window to list printers on the local
> > server:
> > > cscript prnmgr.vbs -l
> > > Error we get:
> > > Unable to list printers, error code: 0x1A8. Object Required.
> > > We get the same error when we try run a different script "cscript
> > clone.vbs"
> > > We have MS Windows Script Host Version 5.6.