WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

FileCopy and SMB or UNIX Servers

Keywords: FileCopy 

This is a Microsoft technote, regarding a problem with the SDK function that our FileCopy function calls in Windows (in the 32-bit version only), when using FileCopy on core SMB servers (such as a LAN Manager for UNIX server) or to a Netware server when the client computer uses real-mode network drivers.
PSS ID Number: Q145935
Article last modified on 04-10-1996
 
4.00
 
WINDOWS
 

----------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Win32 Software Development Kit for
   Microsoft Windows 95
----------------------------------------------------------------------
 
SYMPTOMS
========
 
The CopyFile function fails and GetLastError returns ERROR_ACCESS_DENIED
when you try to copy a read-only file to a core SMB server (such as a LAN
Manager for UNIX server) or to a Netware server when the client computer
uses real-mode network drivers. The destination file is created as a
read-only file and is zero in length.
 
CAUSE
=====
 
This error message occurs because there is a mismatch between the way that
the Windows 95 redirector accesses files and the way that these servers
expect this access.
 
RESOLUTION
==========
 
Remove the read-only attribute before calling the CopyFile function to
allow the file to be copied correctly.	After the copy is complete, then
the read-only attribute can be restored.
 
STATUS
======
 
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
 
Additional reference words: 4.00
KBCategory: kbprg kbbuglist
KBSubcategory: BseFileio
============================================================================
=
Copyright Microsoft Corporation 1996

Article ID:   W13062
Filename:   FileCopy Fails going to SMB or UNIX Servers.txt
File Created: 1999:04:15:16:51:30
Last Updated: 1999:04:15:16:51:30