Having just rebuilt a server with Win 2000 OS (NOT using active
directory) and UDB WSE v8 FP 5, I am now setting up database backup
processing scripts. Reports are created and sent to a network printer
upon completion of various processing stages. The problem is the
reports are failing to print. A bat file which is called from the
Task Center, Command Script tab will successfully execute all the DOS
and DB2 commands in it BUT fail when the report file is sent to the
printer using the DOS 'copy' cmd. The error is 'Logon failure:
Unknown user name or bad password'. If I use the xcopy cmd, I get the
error 'Invalid drive specification'. Next I put the DOS and DB2
commands directly in the Task Center, Command Script. Again, all the
commands ran successfully until the 'copy' to the printer which
reported no error but also did not produce a paper report. If I send
the report file to LPT1 instead of a network printer the report
prints. I think I am facing some security issue, but can't put my
finger on the resolution. The id that runs the scripts is the same id
that is used to log on to the machine and is an Administrator. Under
Computer Management, Local user and groups, this id is listed in both
the Administrators and Users groups. I would be very grateful to
anyone who can offer me a solution to this problem?! Thank you!