PRB: MoveFile Fails to Move UNC Names When NETX Is InstalledID: Q147437
|
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");
NETX for Netware 3.11 does not support renaming files and directories
using UNC names.
There are several possible workarounds for this problem:
This behavior is by design.
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