PRB: MoveFile Fails to Move UNC Names When NETX Is InstalledLast reviewed: February 27, 1996Article ID: Q147437 |
The information in this article applies to:
NOTE: Some products mentioned in this article are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.
SYMPTOMSWhen the network client is the real-mode Netware NETX redirector for Netware 3.11, MoveFile() fails to rename files and directories when the source and destination names are specified in Universal Naming Convention (UNC) format. The return value of MoveFile() is FALSE, but GetLastError() reports an error code of NO_ERROR (0). The following code demonstrates the problem:
MoveFile ("\\\\testsrv\\testshare\\srcdir", "\\\\testsrv\\testshare\\destdir");This problem does not occur with the NETX for Netware 3.12 and later or with protected-mode Netware clients.
CAUSENETX for Netware 3.11 does not support renaming files and directories using UNC names.
RESOLUTIONThere are several possible workarounds for this problem:
STATUSThis behavior is by design.
MORE INFORMATIONAlthough the bug occurs specifically when MoveFile() is used, some runtime library functions call MoveFile(), and thus exhibit the same behavior. The most notable is the C runtime library's rename() function. For information about how your particular compiler's runtime library implements rename(), refer to the documentation provided with your compiler.
|
Additional reference words: 4.00 move rename Novell 3.11
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |