Microsoft KB Archive/145091

= WD: Can't Use NoLongNetNames with Word Versions Later Than 6.0 =

Article ID: 145091

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q145091



SYMPTOMS
If you add the NoLongNetNames option to the Registry, it has no effect on whether Word is able to resolve a network connection. Word will return the universal naming convention (UNC) path when you view the following:


 * A {FILENAME /p} field. The /p switch returns the path to the open document.

-or-
 * The File Locations tab. To view the File Locations tab, click Options on the Tools menu.



WORKAROUND
Use the RegOptions macro in Word 7.x and Word 97 and use the Windows NT Registry editor (Regedt32.exe) for Word for Windows NT to map the network drive to a drive letter.

Word 97
 Map the network drive to a drive letter. Use the RegOptions macro to reset the default document location:  On the Tools menu, click Templates And Add-ins. Click Add. Locate the Macros subfolder. By default, Word macro templates are installed in the \Program Files\Microsoft Office\ Office\Macros folder. Select the Support8.dot file and click OK.

This step adds the Support8 template to the "Global Templates and Add- ins" box.

Click OK. On the Tools menu, point to macro, and then click Macro.</li> In the Macros In list, click "Support8.dot (Global Template)." In the Macro Name list, click RegOptions and then click Run.</li> Select the Word 8.0 Options tab.</li> In the Option list, select DOC-path.</li> In the Setting box, type the path to the network location (for example, G:\user\mydocs).</li> Click OK.</li></ol> </li></ol>

Word 7.0
<ol> Map the network drive to a drive letter.</li> Use the RegOptions macro to reset the default document location: <ol style="list-style-type: lower-alpha;"> On the File menu, click Templates.</li> Click Add.</li> Change to the Macros subfolder under Winword (for example, C:\Msoffice\Winword\Macros).</li> Select the Macros7.dot file and click OK. This step adds the Macros7 template to the "Global Templates and Add-ins" box. Click OK.</li> On the Tools menu, click Macro.</li> In the Macros Available In list, click "Macros7.dot (Global Template)." In the Macro Name list, click RegOptions and then click Run.</li> In the Section box, select Word 7.0 Options.</li> In the Option list, select DOC-path.</li> <li>In the Setting box, type the path to the network location (for example, G:\user\mydocs).</li> <li>Click OK.</li></ol> </li></ol>

Word 6.0
WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

<ol> <li> Start Registry Editor (Regedt32.exe) and go to the following key: <pre class="fixed_text">HKEY_CURRENT_USER\Software\Microsoft\Word\6.0\Options </li> <li>Double-click Doc-path</li> <li>In the String box in the String Editor dialog box, type the path to the network location.</li> <li>Click OK.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
NoLongNetNames is an option that was added to some early versions of Word for Windows to disable UNC support. This setting instructs Word to always use the logical drive letter instead of the UNC path. This option is not supported in Microsoft Word for Windows versions later than 6.0. This change affects the versions listed at the beginning of this article.

For additional information, please see the following article in the Microsoft Knowledge Base:

138418 Can't Use UNC Drive for Document Path on Some Networks

Keywords: kbfaq KB145091

-

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

© Microsoft Corporation. All rights reserved.