Microsoft KB Archive/168833

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Visual SourceSafe, 16-bit and 32-bit, for Windows, version 4.0
 * Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 5.0
 * Microsoft Visual Basic Standard, Professional, and Enterprise Editions 16-bit and 32-bit, for Windows, version 4.0

SUMMARY
There is more than one way to add a Visual Basic project to Visual SourceSafe. The most common way for Visual Basic developers to add a project to Source Code Control (Visual SourceSafe) is to use the "Add Project to Source Code Control" add-in menu item. This adds the currently open Visual Basic project to Visual SourceSafe, if it is not there already. More information on how to do this is in Visual SourceSafe Help under the topic "Add Project To Source Code Control".

Visual Basic projects can also be added directly to Visual SourceSafe, via the Visual SourceSafe Explorer. In fact, an entire directory structure of projects can be added at one time. This article gives you step-by-step instructions on how to add the entire set of Visual Basic sample projects to Visual SourceSafe.

MORE INFORMATION
The simplest way to add the Visual Basic Samples directory (with all its projects) to Visual SourceSafe is to drag it from the File Manager or Windows Explorer and drop it onto the Visual SourceSafe Root directory ($/).

Steps to Drag-and-Drop into Visual SourceSafe

 * 1) Open both the Windows File Manager/Windows Explorer and the Visual SourceSafe Explorer. Tile the two applications so that they are both visible.
 * 2) Select the Visual Basic SAMPLES directory in the File Manager/Windows Explorer and drag the directory on top of the $/ folder in Visual SourceSafe. Drop it there.
 * 3) The "Add Directory Samples" dialog box appears. Attach a Visual SourceSafe comment to the project, if you wish. Select the recursive check box so that all the subdirectories are loaded. Click OK and the entire directory structure is added to Visual SourceSafe.

You can also add the Visual Basic Samples directory to Visual SourceSafe by using the File, Add Files... menu in the Visual SourceSafe Explorer.

Steps to Add Project Files into Visual SourceSafe
Select the $/ folder in the Visual SourceSafe Explorer. Select the File, Add Files... menu item. In the directories portion of the "Add File to $/" dialog box, make sure that you have the Visual Basic SAMPLES directory selected (folder open). Press the Add button on this dialog box. A second dialog box will display which allows you to add a SourceSafe comment to the project, if you wish. Check the recursive box so that all the subdirectories get loaded. Press OK; the entire directory structure will be added to Visual SourceSafe.
 * }

-

Last reviewed: May 22, 1997

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.