Microsoft KB Archive/108406

= WD: Cannot Change Working Directory Using Icon Properties =

Article ID: 108406

Article Last Modified on 1/18/2007

-

APPLIES TO


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

-



This article was previously published under Q108406



SYMPTOMS
When you start Word for Windows, the default directory may not be the one you set as the Working Directory in the Program Item Properties dialog box for the icon you use to start Word for Windows.

Word versions 7.0, 97
In Word for Windows95, version 7.0 you cannot change the default document location to blank. You can, however, create a macro that, when run from the shortcut bar or desktop shortcut, will achieve the same results using the following instructions:

 In Word 97, on the Tools menu, point to Macro, and click Record New Macro. In Word 7.0 on the Tools menu, click Macro. Type a name for the new macro, (click record in Word 7.0). Click OK in the Record Macro dialog box. On the File menu, click New. Click the Blank Document icon, and click OK. On the Tools menu, click Options. Click the File Locations tab, and change the document path to the desired path, and click Close. Click the Stop button on the Macro record toolbar. Create a shortcut on the desktop or add a new menu entry on the Start Bar. In the command line of the shortcut, add /m where is the name of the macro you just created in step 1 above.

Example

C:\Msoffice\Winword\Winword.exe /mdoculocation

where doculocation is the name of the macro.</li></ol>

NOTE: If this method is used, you will need to create a macro and shortcut for each of the different startup locations. If Word is started from the Office Shortcut toolbar, or from the Start menu, the File Locations tab will reflect the location that the macro above has set it. In addition, Word will start with document2 instead of document1. This is done because Word must have a document open to execute the macro at startup. If the FileNew command is not in the macro, you will receive a "Wordbasic error=509" The ToolsOptionsFileLocations command is not available because a document window is not active.

Word 6.x
If there is a DOC-PATH setting in the [Microsoft Word] section of your Winword6.ini file, this setting overrides the Working Directory setting. If there is no DOC-PATH setting, Word uses the Working Directory setting as the default directory.

If you want to control the default directory using different Program Manager icons to start Word, delete the DOC-PATH setting from your WINWORD6.INI file using the following instructions:


 * 1) From the Tools menu, choose Options.
 * 2) Select the File Locations tab.
 * 3) In the File Type list, select Documents and choose the Modify button.
 * 4) Clear the Location Of Documents box and then choose OK.
 * 5) In the Options dialog box, choose the Close button.

<div class="references_section">