1

我遇到了一个奇怪的问题,我无法正确运行可执行文件。

如果我双击或使用图标回车,就好像应用程序尝试使用参数 /help 运行可执行文件。(更确切地说是 socrm.exe /help)(没有为文件设置参数)

如果我尝试在不带任何参数的情况下通过命令提示符运行 socrm.exe,则效果很好。

我的问题是:从文件夹运行可执行文件和在不带任何参数的命令提示符下运行它有什么区别?

这个错误似乎只发生在 WinXP 32 位机器上,当在 Win7 32/64 上尝试完全相同的应用程序时,它工作正常。

会不会是某些 .dll 文件没有正确注册?

提前致谢。

感谢任何答案。

4

1 回答 1

0

Looks like there is something in your registry that opens this file with a parameter each time or the "socrm.exe" executes itself again with the /help parameter. How do you know it opens with the /help parameter? Anyway, there is actually no big difference between "the user click" and open an executable with the commandline. Behind the scenes, your program get's executed as a child process of CMD and I think your program also gets it's user-rights from it's parent process. Hope I could help a little.

于 2012-06-14T09:50:13.837 回答