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
    2010-01-08T01:59:10+00:00

    Sprint6,

    You are the Man!!!  I was running Windows 7 32bit, with Office 2007 and the same issue, your suggestion to uncheck the box "run as administrator" was the cure...  Thanks you dont even know how many hours I wasted reloading, indexing, cleaning etc...  This is definately something that compatability mode overwrites in word because when I check all the remaining office programs none of them had that box checked, and of course I was having no issues with them...

    Thanks again Sprint6

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2009-12-30T23:47:09+00:00

    The method of unchecking "Run as administrator" fix worked for me, but I'll add that I also had to uncheck Compatibility Mode.  Also, the Administrator box was not available until I hit the "change settings for all users" button.

    Not to gripe, but why does the actual solution come from everybody but the support people?  I'm beyond tired of asking questions and getting "Please make sure your computer is plugged in".

    Thanks for your help.  People are what make the internet great.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2009-12-18T20:24:01+00:00

    The "Run as" fix did not work for me. I had to uncheck the "Run this program in compatibility mode for:". It was set to WinXP SP3. My system is running Win 7 64-bit and Office 12.


    Jim Garrison

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2009-12-13T18:39:49+00:00

    Unchecking "run as" in the Compatibility tab is the right answer for this. I spent many hours trying security issues. It's beginning to be clear to me that the Windows folks maybe don't know the new security and compatibility features as they should. Why run such a scan when a checkbox works?

    Was this answer helpful?

    0 comments No comments