Microsoft KB Archive/121087

= AT Scheduler and Batch Scripts With NCC (NWCS) =

Article ID: 121087

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows NT Advanced Server 3.1
 * Microsoft Windows NT Workstation 3.1
 * Microsoft Windows NT Advanced Server 3.1

-



This article was previously published under Q121087



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 query words: prodnt 3.10 NWCS CSNW GSNW

Keywords: KB121087

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.