Problem with command-line switches: Can't open Word by clicking on documents

Anonymous
2009-06-12T04:13:19+00:00

Using Windows 7 64-bit.

When I click a Word document in Explorer or on the Start menu, I get the error "There was a problem sending the command to the program". I'm using Word 2003, but I don't get this problem with Excel 2003.

I know that when I try to open a document this way, the program uses the command switches "/n" -- which means "open a new instance of Word", -- and "/dde" -- which I don't know what it means. I do know that I don't want the /n switch. 

  1. How can I remove the /n switch? Remember, I'm not clicking on a shortcut, but on a document icon. I know how to assign the "Open With" command, but I don't see any options about changing command-line switches.
  2. Is the /dde switch causing my problem? How do I remove it? 

Compatibility mode doesn't seem to make a difference.

This doesn't happen with Excel 2003, or with any version of Office 2007. I'm sure this has something to do with how I associated .doc files to Word 2003: I'm guessing that it added the switches, and they're causing the problem. I wish I knew how to change the switches.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2009-06-12T11:56:03+00:00

Hello ShawnVW,

Thank you for visiting the Microsoft Windows Vista Community site.

Try the following:

Method 1: Change File Type Association Directly from the File Properties

  1. Right click on a file with the type or extension that want to change its associated application program.
  2. Select Properties on right click context menu.
  3. In the General tab, click on Change button.
  4. An Open With window will appear. Choose a program to open the kind of file from the list of programs available. By default, Recommended Programs is automatically expanded. However, there is more detected programs in the section of Other Programs, which can be expanded to select by clicking on Down Arrow at the end of the separator line.

If the program that want to used as the default program does not found, click Browse to select an executable file manually. 5. Click OK button.

Method 2: Change File Type Association Directly On The Fly

Note that this method works if only several programs have been used to open and run a kind of file type extension previously.

  1. Right click on a file with the type or extension that want to change its associated application program.
  2. Point to Open With on right click context menu, and then select Choose Default Program.
  3. An Open With window will appear. Choose a program to open the kind of file from the list of programs available. By default, Recommended Programs is automatically expanded. However, there is more detected programs in the section of Other Programs, which can be expanded to select by clicking on Down Arrow at the end of the separator line.

If the program that want to used as the default program does not found, click Browse to select an executable file manually. 4. Check and tick the checkbox for Always use the selected program to open this kind of file option. 5. Click OK button. The file association will be set, and the file or document will be opened using the new default program automatically.

Method 3: Assign New File Association via Windows Vista Set Associations

  1. Open Control Panel. Then go to Programs and click Make a file type always open in a specific program.

Alternatively, in the Classic View, open Default Programs and then click Associate a file type or protocol with a program. 2. In the Set Associations folder, locate and highlight a file type by extension or protocol, and then click on Change Program button. 3. An Open With window will appear. Choose a program to open the kind of file from the list of programs available. By default, Recommended Programs is automatically expanded. However, there is more detected programs in the section of Other Programs, which can be expanded to select by clicking on Down Arrow at the end of the separator line.

If the program that want to used as the default program does not found, click Browse to select an executable file manually. 4. Click OK button.

I suggest we run a System File Checker which scans for and attempts to fix corrupted System files. - below are the instructions and have Vista Disc ready:

<br>Running the System File Checker
<ol><br><li><br><span>Click </span><span style="font-weight:bold">Start</span><span>, click<br></span><span style="font-weight:bold">All Programs</span><span>, click<br></span><span style="font-weight:bold">Accessories</span><span>, right-click<br></span><span style="font-weight:bold">Command Prompt</span><span>, and select<br></span><span style="font-weight:bold">Run as Administrator</span><span>.</span><br></li><li><br><span>Click </span><span style="font-weight:bold">Continue</span><span> or supply Administrator credentials<br> if prompted.</span> </li><li><br><span><span> </span>In the<br></span><span style="font-weight:bold">Command Prompt</span><span> window type the following, and press:<span> <br></span></span><span style="font-weight:bold">Enter</span><span>:</span><span style="font-weight:bold">sfc /scannow</span><br></li><li><br><span><span> </span>You should see the following on-screen messages:</span><ol><br><li><br><span style="font-style:italic">Beginning the system scan. This process will take some time.</span><br></li><li><br><span style="font-style:italic">Beginning verification phase of system scan.</span><br></li><li><br><span style="font-style:italic">Verification % complete</span><br></li></ol><br></li><li><br><span>  Once the scan has completed you will receive an onscreen message resembling one of the following:</span><ol><br><li><br><span>…found no integrity violations</span><br></li><li><br><span>…</span><span style="font-style:italic">found corruption but repaired it</span><br></li><li><br><span>…</span><span style="font-style:italic">found corruption that it could not repair</span><br></li></ol><br></li><li><br><span><span> </span>Please reply with the completion message that you received.</span><br></li></ol>

This should resolve your problem.

Let us know if these steps resolve your problem.  I hope the information is useful.

Regards,


Anthony

Microsoft Answers Support Engineer

Visit our Microsoft Answers Feedback Forum and let us know what you think.

Was this answer helpful?

0 comments No comments

77 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-02-04T08:07:46+00:00

    BTW, this also suddenly stopped the program from demanding permission every time it opened!

    Thanks soooo much!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-02-04T08:05:11+00:00

    OMG! Don't tell my husband, but I could just kiss you for this! 

    Thanks so much,

    Cynara

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2012-01-20T13:41:09+00:00

    Windows resourse protection found corrupt files but was unable to fix some of them. it says that details are in the cbs.log but i can't find it.

    the upshot I still have the problem.

    Kevin

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2011-11-18T01:43:10+00:00

    Microsoft word 2007 utilizing windows 7

    Document written in 2003 however other documents written with word 2007 same problem exist

    When trying to open a document in word 2007 directly from the file or from the desk top a warning appears  "THere was a problem sending the command to the program.

    The document will open only when word 2007 has been started and a request within word 2007 to open a file, then locate the file the document will then open.

    Short cuts by going directly to the file will not open

    Thank you for your assistance

    Was this answer helpful?

    0 comments No comments