“Windows (Vista) 找不到“abc.def”。 请确保您输入的名称正确,然后重试。”
在 Windows Vista(仅限)中,当我双击 Windows 资源管理器中与我的应用程序关联的文件时,会显示以下消息:
“Windows 找不到“abc.def”。 确保您输入的名称正确并且 然后再试一次。
其中 abc.def 是我在资源管理器中双击的文件。 如果我的应用程序尚未运行并且文件已正确打开,则它会启动。 同样,如果我的应用程序已经在运行,则文件会正确打开。 但总是显示这个错误。
如果我使用“打开方式”并选择我的应用程序,文件将打开并且不会显示错误。
我用 Google 搜索并发现人们在使用 Word、Excel 文件等时遇到此错误的各种帖子,但没有真正的解决方案。
In Windows Vista (only) when I double click on a file in Windows Explorer that is associated with my application, the following message is displayed:
"Windows cannot find "abc.def". Make
sure you typed the name correctly and
then try again.
Where abc.def is the file I double click on in Explorer. My app starts if it isn't already running and the file does get opened correctly. Likewise if my app is already running the file is opened correctly. But this error is always displayed.
If instead I use "Open With" and select my app the file opens and no error is displayed.
I've Googled and found various posts from people getting this error with Word, Excel files etc., but no real solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不确定,但您可以在 C# 下使用此代码将文件扩展名注册到您的应用程序。 您必须以管理员权限运行它,
您可以按如下方式调用它
Am not sure, but you can use this code under C# to register a file extension to your application. you must run it with administrator privileges
you call it as follows
您是否尝试过将您的应用程序设置为该文件关联的默认操作? 还可以尝试在长名称和 8.3 名称(即 progra~1)之间切换。
Have you tried setting your app as the default action for that file association? Also try switching between long names and 8.3 names (i.e. progra~1).
您的应用程序需要多长时间才能启动? 我在打开一些与 Visual Studio 关联的文件时也看到了这一点。 (在我的系统上,VS 有时需要相当长的时间才能启动。)
How long does it take for your app to start? I've also seen this when opening some files that are associated with Visual Studio. (On my system, VS sometimes takes quite a bit of time to launch.)
今年我遇到了类似的问题,具有相同的症状,并且我能够通过删除与软件关联的“ddeexec”注册表项来摆脱该消息(在我的例子中:HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes \ your software.Document \Shell\Open\ddeexec)
I had a similar problem this year, with the same symptoms, and I was able to get rid of the message by removing the "ddeexec" registry entry associated with the sofware (in my case : HKEY_LOCAL_MACHINE\SOFTWARE\Classes\your software.Document\Shell\Open\ddeexec)