“错误” 应用程序固定到任务栏 (Windows 7)
我有一个通过快捷方式启动的应用程序。 该应用程序随后使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 winrun4j 之类的东西或创建 .bat 而不是使用快捷方式。
Use something like winrun4j or create a .bat instead of using a shortcut.
您可以像这样清理您的
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
您可以直接固定快捷方式,不一定是在任务栏上打开的窗口:右键单击快捷方式,固定到任务栏。 将打开的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.