可执行文件名称相同,位置不同,设置优先级

发布于 2024-10-04 05:47:34 字数 321 浏览 0 评论 0原文

我已经构建了一个可执行文件,该可执行文件与 Windows 在 C:\WINDOWS\system32 (tree.com) 中提供的可执行文件具有相同的主体(名称为 tree.exe)。

我已经将我的环境变量设置为我的 .exe 所在的路径,并且通常它应该被执行运行,尽管由于相同的名称出现在不同的位置,所以运行 tree.com 。

问题是,是否可以设置可以执行我的tree.exe而不是tree.com的优先级。此外,由于构建后tree.exe被转储到服务器,其他用户也有同样的问题,他们不能直接运行,他们需要找到实际的项目并双击它。

有什么想法吗?

谢谢。

I have build an executable that has the same body (the name is tree.exe) with one that windows is provided at C:\WINDOWS\system32 (tree.com).

I have set my Environment Variables that the path where my .exe resides and normally it eould be executed run, though as the same name appears in a different location the tree.com is run instead.

The question is, is it possible to set the priorities where my tree.exe can be executed instead of tree.com. Furthermore, as after the build the tree.exe is dumped to a server other users have the same problem, they cannot just run directly, they need to locate the actual item and double click it.

Any ideas?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-10-11 05:47:34

我不太确定,但我认为您应该在 PATH 变量中的系统路径之前拥有可执行文件的路径。更改变量后不要忘记重新打开控制台。

I'm not quite sure, but i think you should have the path to your executable before the system paths in PATH variable. Don't forget to reopen the console after the variables have been changed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文