Microsoft KB Archive/267922

= BUG: File System Control: Open File Can Be Moved or Copied Without Error =

Article ID: 267922

Article Last Modified on 7/27/2004

-

APPLIES TO


 * Microsoft eMbedded Visual Basic 3.0

-



This article was previously published under Q267922



SYMPTOMS
In an eMbedded Visual Basic application, an error 55 &quot;File already open&quot; is not raised when an open file is copied or moved through the use of the FileCopy or MoveFile methods of the file system control.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
 Create a new eMbedded Visual Basic application. From the Project menu, click Components, and then select Microsoft CE File System Control 3.0. Add a file control and a file system control to Form1.  Paste the following code into Form1: Private Sub Form_Activate File1.Open &quot;CopyTest.txt&quot;, fsModeAppend File1.LinePrint &quot;Test&quot; FileSystem1.MoveFile &quot;CopyTest.txt&quot;, &quot;CopyTest2.txt&quot; File1.LinePrint &quot;Test2&quot; File1.Close End Sub  Run the application. Note that no error results. Because the file has been opened by File1, the expected behavior would be that the &quot;File already open&quot; error message would be generated.

Additional query words: evb evb3 vbce6

Keywords: kbbug kbpending KB267922

-

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

© Microsoft Corporation. All rights reserved.