是否可以在hta中添加自定义图标

发布于 2024-10-10 09:29:02 字数 226 浏览 0 评论 0原文

hta可以添加自定义图标吗?我的意思是更改默认的 hta 文件图标,即“系统应用程序图标”。可以在不为扩展程序分配新图标并且不使用文件快捷方式的情况下完成吗? 像这样

替代文本

Is it possible to add custom icon to hta? What I mean is change the default hta file icon, which is "System Application Icon". Can it be done without assigning new icon to the extension, and not using shortcuts to the file ?
Like this

alt text

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

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

发布评论

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

评论(3

背叛残局 2024-10-17 09:29:02

WinRAR 可以帮助您做到这一点。

  1. 打包您的 hta 和图标文件到exe;
  2. 在选项中,
    一个。选择“静音”提取;
    b.设置提取路径;
    c.创建提取路径,然后将该图标文件放在那里,选择该路径中的图标。
    d.设置在提取 exe 文件后运行 hta(c:\your_path\your.hta) 。
    (我无法提供更多详细信息,因为我现在没有安装 WinRAR,这是为 hta 添加图标的常见方法。)

每次用户运行您创建的 exe 时,它​​只会将 hta、图标提取到您指定的路径,然后运行您的 hta。 exe文件会有图标显示,甚至复制到另一台计算机上。

如果正确完成所有工作,您将获得一个带有您定义的图标的 exe 文件。

顺便说一句,您也可以尝试谷歌:hta exe icon

祝您好运!

WinRAR can help you do that.

  1. Package your hta & icon file to exe;
  2. In options,
    a. select "silent" extract;
    b. set extract path;
    c. create extract path and then put that icon file there, select icon in this path.
    d. set run your hta(c:\your_path\your.hta) after exe file extracted.
    (i could not provide more detail because i don't have WinRAR installed right now, it's a common way to add icon for hta.)

Every time user run the exe you created, it will just extract hta, icon to the path you specified, and then run your hta. the exe file will have the icon display, even copy to another computer.

If you get all work done correctly, you will get a exe file with the icon you defined.

BTW, you can also try google: hta exe icon

Good luck!

魔法少女 2024-10-17 09:29:02

是的,您当然可以:这个。您将图标嵌入 hta 文件中

Yup, you sure can: this. You embed the icon in the hta file

等数载,海棠开 2024-10-17 09:29:02

更好你使用 Exescript 软件

它很好,因为它易于使用,并将图标添加到资源文件(出现在 hta 的顶部边框上)

之后,将设置菜单中的图标添加到 Exe 文件并构建项目,

您将获得带有自定义图标的 exe 文件。

Better You use Exescript Software

It's Good because ease of its use and add icon to resource file (which appears on top border of hta)

After that add icon in settings menu to Exe File and build the project

U will get a exe file with custom icon.

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