无法使用rundll32调用在Windows Server 2008中启动Excel [英] Cannot launch Excel in Windows Server 2008 using rundll32 call

查看:77
本文介绍了无法使用rundll32调用在Windows Server 2008中启动Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个内部应用程序,通过执行以下命令启动Excel文件:

I have an in-house application that launches an Excel file by executing the following command:

rundll32 SHELL32.DLL,ShellExec_RunDLL somefile.xls

rundll32 SHELL32.DLL,ShellExec_RunDLL somefile.xls

此命令在Windows XP或Windows Server 2003中运行完美,但是当我在Windows Server 2008下测试它时,它没有做任何事情。 是否有注册表更改或其他类型的权限更改,允许上述命令在Windows Server 2008下启动我的Excel文件?

This command runs perfectly in Windows XP or Windows Server 2003 but when I test it under Windows Server 2008 it doesn't do anything.  Is there a registry change or some other type of permission change that will allow the above command to launch my Excel file under Windows Server 2008?

顺便说一句,我在干净下测试了上面的命令使用默认设置的XP,Windows Server 2003和Windows Server 2008的vanilla安装,并在每个实例下安装了Excel 2003。 我不想修改上面的命令行,因为这需要更改代码。 任何建议都会有所帮助。

By the way, I tested the above command under clean vanilla installations of XP, Windows Server 2003, and Windows Server 2008 using default settings and I installed Excel 2003 under each instance.  I prefer not to modify the above command line as this would require a code change.  Any suggestions would be helpful.

推荐答案

问候语,是否可以使用"开始"命令代替上述命令  ; - 如本文所述: http://www.watchingthenet.com/windows-tip-use-batch-file-to-open-multiple-programs-at-once.html 。但是,这是您可以尝试执行的命令。


start / d "C:\ Program Files \ Microsoft Office \Office12" EXCEL.EXE

希望这会有所帮助。

< p style ="margin:0in 0in 0pt">
注意
- 免责声明
Greetings,

Can you use the 'Start' command instead of the above command - as in this article: http://www.watchingthenet.com/windows-tip-use-batch-file-to-open-multiple-programs-at-once.html. However, here is the command which you can try to execute.


start /d "C:\Program Files\Microsoft Office\Office12" EXCEL.EXE

Hope this helps.


NOTE
- Disclaimer

此消息中的链接可能会导致第三方网站。 Microsoft提供第三方资源以帮助您查找客户服务和/或技术支持资源。这些网站的信息如有更改,恕不另行通Microsoft不对任何第三方网站上的内容负责,也不保证第三方信息的准确性。

= ================ ================================================== =======
如果这有助于解决您的问题,请将此标记为答案。
===================== ================================================== ==

问候,左翼


这篇关于无法使用rundll32调用在Windows Server 2008中启动Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆