Microsoft KB Archive/66613

Creating WIN.INI Settings for Default Data Paths PSS ID Number: Q66613 Article last modified on 04-22-1993

1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c

WINDOWS

Summary:

Microsoft Word for Windows does not inherently use WIN.INI settings for setting a default document path. Customized WIN.INI settings can be created, however, and then selected using AUTOEXEC or AUTONEW macros.

More Information:

The following example sets up a default data path using a WIN.INI setting in conjunction with an AUTOEXEC macro.

  Add a line similar to the following under the [Microsoft Word] heading in the WIN.INI: Data-Path=C:   Create an AUTOEXEC macro by choosing Edit from the Macro menu and typing “AUTOEXEC” (without the quotation marks) for the macro name and choosing OK.   Complete the macro as follows: Sub Main ChDir(GetProfileString$(“Data-Path”)) End Sub   Save the AUTOEXEC macro by choosing Save All from the File menu. 

Data paths can also be set for specific document types such as letters and memos by adding additional data paths in the WIN.INI; for example, the following

Letter-Path=c:\winword\letter Memo-Path=c:\winword\memo and creating AUTONEW macros in the LETTER.DOT and MEMO.DOT that call the appropriate path designations from the WIN.INI.

Reference(s):

“Microsoft Word for Windows Technical Reference,” page 56.

“Microsoft Word for Windows and OS/2 Technical Reference,” page 192.

Addtional reference words: w4wmacro

=
================================================================

Copyright Microsoft Corporation 1993.