“错误” 应用程序固定到任务栏 (Windows 7)

发布于 2024-08-01 14:08:16 字数 190 浏览 8 评论 0原文

我有一个通过快捷方式启动的应用程序。 该应用程序随后使用 CreateProcess() 启动 Java GUI 应用程序。

当 Java 应用程序固定到任务栏时,javaw.exe 会固定到任务栏,而不是“预期的”快捷方式。 只能修改启动 Java 的本机可执行文件 - 必须保留快捷方式。

必须做什么才能固定快捷方式?

I have an application that gets started via a shortcut. This application than starts a Java GUI application with CreateProcess().

When the Java application gets pinned to the taskbar the javaw.exe gets pinned to the taskbar instead of the "expected" shortcut. Only the native executable which launches Java can be modified - the shortcut has to stay.

What has to be done so that the shortcut gets pinned?

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

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

发布评论

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

评论(3

居里长安 2024-08-08 14:08:16

使用 winrun4j 之类的东西或创建 .bat 而不是使用快捷方式。

Use something like winrun4j or create a .bat instead of using a shortcut.

獨角戲 2024-08-08 14:08:16

您可以像这样清理您的 IconCache

首先转到任务管理器并杀死 explorer.exe

Windows 任务管理 -> 流程-> 结束“explorer.exe”

然后,在任务管理

Windows任务管理-> 文件-> 新-> CMD.EXE

在打开的控制台中输入:

CD /d %userprofile%\AppData\Local DEL IconCache.db /a EXIT

然后重新打开explorer.exe

Windows 任务管理 -> 文件-> 新-> 资源管理器.exe

You could clean your IconCache like this:

First go to Task Manager and kill explorer.exe

Windows Task Management -> Processes -> End "explorer.exe"

Then, in the Task Management

Windows Task Management -> File -> New -> CMD.EXE

In the opened console type:

CD /d %userprofile%\AppData\Local DEL IconCache.db /a EXIT

Then reopen the explorer.exe

Windows Task Management -> File -> New -> explorer.exe

浮云落日 2024-08-08 14:08:16

您可以直接固定快捷方式,不一定是在任务栏上打开的窗口:右键单击快捷方式,固定到任务栏。 将打开的java窗口不会使用您固定在任务栏上的按钮,因为它是一个不同的应用程序,但这不是问题,我明白。

You can pin a shortcut directly, not necessarily a window that is open on taskbar: right click on the shortcut, Pin to taskbar. The java window that will open won't use the button you pinned on the taskbar, since it's a different application, but that was not the issue, I understand.

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