AT Scheduler and Batch Scripts With NCC (NWCS)

Last reviewed: August 29, 1996
Article ID: Q121087
The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1

SUMMARY

The 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 INFORMATION

After 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.

WORKAROUND

Rather 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\subdirectory

You 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: /del

The 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
KBCategory: kbnetwork
KBSubCategory: ntprotocol NTSrvWkst


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.