AT Scheduler and Batch Scripts With NCC (NWCS)Last reviewed: August 29, 1996Article ID: Q121087 |
The information in this article applies to:
SUMMARYThe current NetWare redirector shipped with the NCC (NetWare Compatible Client) software for Windows NT does not allow you to access NetWare drives by means of the AT Scheduler.
MORE INFORMATIONAfter you connect to a NetWare drive using NCC software, you cannot use that drive letter in batch scripts launched by the AT scheduler, although batch scripts run correctly when you launch them manually. This is because the NetWare redirector (NWRDR) distinguishes users by LUID (locally unique identifier). The AT Scheduler service login session and the your login session are deemed to be different sessions, so access to the NetWare drive fails, regardless of which account starts the AT Scheduler service. For portability reasons, you should avoid referencing drive letters in batch scripts even if the redirector used supports it: if you do and the current user logs out when the script runs, the job fails.
WORKAROUNDRather than access NetWare drives within batch scripts that are run by the Scheduler service, use UNC naming. For example: To copy a file to a NetWare drive, use this string within the batch file. NOTE: your account must have necessary rights on the NetWare directory.
copy filename.ext \\nwserver\volume\subdirectoryYou may also be able to make the drive connection from within the batch script, then delete the connection after performing the desired task. You can add the /USER: parameter to specify a different account and password. For more information on the NET USE command and its parameters type
NET USE /?at the command prompt.
net use X: \\nwserver\volume\subdirectory copy filename.txt X: net use X: /delThe following line fails when used within a batch script launched by the AT Scheduler when the drive connection is made outside of the batch script.
copy filename.txt X:NetWare is a product manufactured by Novell Inc., a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.
|
Additional reference words: prodnt 3.10 NWCS CSNW GSNW
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |