DOCUMENT:Q193584 01-MAY-2001 [ssafe] TITLE :FIX: Files Always Opened with Default Visual SourceSafe Viewer PRODUCT :Microsoft SourceSafe PROD/VER: OPER/SYS: KEYWORDS:kbSSafe500bug kbSSafe600fix kbSSExplorer ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual SourceSafe for Windows, version 5.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When you view a text file from Visual SourceSafe Explorer, the default Visual SourceSafe viewer opens the file, even though you set the correct path for your desired editor in "Editor for viewing files". CAUSE ===== The path for the executable file in the "Editor for viewing files" contains a space. For example: C:\Program Files\Accessories\wordpad.exe NOTE: To see the path, click Options under the Tools menu and then looking for the "Editor for viewing files" text box on the General Tab. RESOLUTION ========== Type quotes around the path name if it contains a space in it. For example: "C:\Program Files\Accessories\wordpad.exe" "%1" STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual SourceSafe version 6.0. MORE INFORMATION ================ Visual SourceSafe Explorer allows you to customize your settings to view files. You can type the exact path to the executable file of your editor in the "Editor for viewing files" text box. When you try to view a file by selecting View File from the Edit menu, Visual SourceSafe uses the "Editor for viewing files" path to locate the .exe. However, if that path contains a space, the file is opened in the default Visual SourceSafe viewer. Steps to Reproduce Behavior --------------------------- 1. Start Visual SourceSafe Explorer. 2. Go to the Tools menu and click Options. The General Tab appears in the Options dialog box. 3. If you are using a Windows 95 computer, type the following in the "Editor for viewing files" text box: c:\Program Files\Accessories\WordPad.exe If you are using a Windows NT computer, type the following in the "Editor for viewing files" text box: c:\Program files\Windows NT\Accessories\WordPad.exe 4. Click OK. 5. Add a file to $/. 6. Right-click on the file, and click View File. RESULT: Instead of WordPad, the file is opened in the default Visual SourceSafe viewer. Additional query words: ====================================================================== Keywords : kbSSafe500bug kbSSafe600fix kbSSExplorer Technology : kbSSafeSearch kbAudDeveloper kbSSafe500 Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.