Microsoft KB Archive/138447

{|
 * width="100%"|

Word 2.x/6.x: New Word Session Started for Each Attached File

 * }

Q138447

-

The information in this article applies to:


 * Microsoft Mail for Windows, version 3.0
 * Microsoft Windows for Workgroups Mail, version 3.1
 * Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 2.0c-CD, 6.0, 6.0a, 6.0c
 * Microsoft Windows for Workgroups version 3.1
 * Microsoft Windows 3.1
 * Microsoft Windows 95

-

IMPORTANT: This article contains information about editing the registration database. Before you edit the registration database, you should first make a backup copy of the file (Reg.dat in Windows 3.1).

SYMPTOMS
Windows starts an individual instance of Word for Windows for each attached Word document that you open from within a Mail for Windows message.

"-or-" Windows starts an individual instance of Word for Windows for each document file that you double-click in File Manager.

CAUSE
This behavior occurs in Mail and File Manager when the file association for .doc files is incorrect or when the Word Document setting is incorrect or incomplete in the Windows registration database file (Reg.dat in Windows 3.1).

For example, if you set the file association for .doc files to

  C:\Winword\Winword.Exe Windows starts a new instance of Word each time you start a file from File Manager and each time you open a document from Mail. If you set the file association to

"Microsoft Word Document" Windows checks the registration database and performs the specified commands for an Open action. (By default, Windows opens a document in the current instance of Word if it is already running.)

WORKAROUND
To work around this behavior, associate .doc files with Word and correct the Word Document settings in the registration database. To do this, use the steps appropriate to your version of Word and Windows.

Windows 95 and Word 2.0x, 6.0, 6.0a, and 6.0c
To check the .doc file association, use the following steps:

 In Windows Explorer, click Options on the View menu, and click the File Types tab. In the Registered File Types box, click Microsoft Word Document, and click New Type. In the Description of Type box, type Microsoft Word Document. In the Associated Extension box, type .doc. Click New in order to define an action for this file type. In the New Action dialog box, in the Action box, type the action that you want to define; for example, type Open or New.  In the "Application Used to Perform Action" box, type the command that you want to run in order to complete the action you specified; for example, type: "c: \Winword.exe" where is the folder that contains the Word program.  Click OK. Click OK again.</li></ol>

For more information about associating file types in Windows, see your Windows printed documentation or click the Index tab in Microsoft Windows Help, type the following text

"associating, file types" and then double-click the selected text to view the "Creating or modifying a file type" topic.

Windows 3.1 and Word 2.0b, 6.0, 6.0a, and 6.0c
To check the .doc file association, use the following steps:


 * 1) In File Manager, click a .doc file.
 * 2) On the File menu, click Associate.
 * 3) In the Associate With box, click Microsoft Word Document

Where is the directory that contains the Word program, and click OK.

To edit the Reg.dat file, use the following steps:

<ol> In File Manager, click either Ww20.reg (for Word 2.0b), or Winword6.reg (for Word 6.0). These files are located in the Word for Windows directory.</li> On the File menu, click Associate.</li> In the Associate With list, click Registration Entries (Regedit.exe) and click OK.</li> In the list of files, double-click Ww20.reg (for Word 2.0b) or Winword6.reg (for Word 6.0).</li>  Click OK when the following message appears: Information in C:\Winword\Ww20.reg (for Word 2.0b)

-or-

C:\Winword\Winword6.reg (for Word 6.0)

has been successfully registered in the registration database. </li></ol>

Windows 3.1 and Word 2.0 and 2.0a
To check the .doc file association, use the following steps:


 * 1) In File Manager, click a .doc file.
 * 2) On the File menu, click Associate.
 * 3) In the Associate With list, click Word 2.0 for Windows and click OK.

To edit Reg.dat, use the following steps:

NOTE: Before you perform any of the following steps, make a backup copy of your Reg.dat file.

WARNING: Using Registration Editor incorrectly can cause serious problems. Microsoft cannot guarantee that problems resulting from the incorrect use of Registration Editor can be solved. Use Registration Editor at your own risk.

<ol> In Program Manager or File Manager, click Run on the File menu.</li> In the Command Line box, type regedit and click OK.</li> In the Registered File Types list, click Microsoft Word Document.</li> On the Edit menu, click Modify File Type.</li>  In the Action box, select Open.

The Command box contains the following incorrect string: "<Drive letter>:\WINWORD\winword.exe %1" where <Drive letter> is your computer's hard disk drive. </li>  Change the string to the following (remove " %1"): "<Drive letter>:\WINWORD\winword.exe"</li> Click Uses DDE.</li>  In the DDE box, type the following settings: <pre class="FIXEDTEXT">      DDE Message:                     [FileOpen("%1")] Application:                    Winword DDE Application Not Running: Topic:                          System </li> In the Modify File Type dialog box, click OK.</li> On the File menu, click Exit to close the Registration Editor.</li></ol>

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

"Q102496 Individual Word Session Started for Each Attached Document" Additional query words: 2.0 2.0a 2.0a-CD 2.0b 2.0c 6.0 3.0a 3.0b email e-mail electronic msmail win31 attachment session multiple instances extra separate different second 2nd

Keywords : kbinterop winword

Issue type :

Technology : kbWordSearch kbWordWSearch