PRB: MoveFile Fails to Move UNC Names When NETX Is Installed

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.

SYMPTOMS

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


CAUSE

NETX for Netware 3.11 does not support renaming files and directories using UNC names.


RESOLUTION

There are several possible workarounds for this problem:


STATUS

This behavior is by design.


MORE INFORMATION

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


Keywords          : kb3rdparty kbnetwork kbAPI kbSDKPlatform kbWinOS95 kbWNet kbGrpNet 
Version           : 
Platform          : 
Issue type        : kbprb 

Last Reviewed: March 7, 1999