Microsoft KB Archive/158701

= PRB: Error When Renaming a File That Is Checked Out =

Article ID: 158701

Article Last Modified on 5/1/2001

-

APPLIES TO


 * Microsoft Visual SourceSafe 4.0 Standard Edition
 * Microsoft Visual SourceSafe 4.0a
 * Microsoft Visual SourceSafe 5.0 Standard Edition
 * Microsoft Visual SourceSafe 6.0 Standard Edition

-



This article was previously published under Q158701



Visual SourceSafe 4.0
If you rename a file that is checked out in Visual SourceSafe 4.0, and you try to check it back in, you get the following message:

File " \ " not found

Where is the working directory for the renamed file, and is the new name of the file.

This behavior occurs because the copy of the checked-out file is not renamed by Visual SourceSafe.

Visual SourceSafe 5.0 or later
If you try to rename a file that is checked out in Visual SourceSafe 5.0 or later, the following message appears:

Unable to rename the selected file

If you try to rename a file that is checked out to another user, the same message appears.



RESOLUTION
Before renaming a file in the Visual SourceSafe database, make sure that the file is not checked out by any users.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
Visual SourceSafe 4.0:  Open or switch to Visual SourceSafe 4.0. Right-click a file and click Check Out. With the checked-out file selected, click Rename on the File menu. Rename the file. Right-click the file and click Check In. Note that the following message appears:

File "\ " not found

</li></ol>

Visual SourceSafe 5.0 or later: <ol> Open or switch to Visual SourceSafe.</li> Right-click a file and click Check Out.</li> Right-click the checked-out file and click Rename. Note that the following message appears:

Unable to rename the selected file

</li></ol>

Keywords: kbprb KB158701

-

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

© Microsoft Corporation. All rights reserved.