Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 509781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:02:46+00:00 2026-05-13T07:02:46+00:00

I have written an HTML Application (hta file) and am wondering if there is

  • 0

I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself.

I have seen html emails that include embedded graphic files, is there any way to do this with html applications and icons?

HTA files have an HTA:APPLICATION tag that allows you to specify an icon, but I want to have only a single file for download. I don’t want to have an external icon file. Is this possible?

More info on hta files here: HTA files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:02:47+00:00Added an answer on May 13, 2026 at 7:02 am

    I’ve found an hack to set the icon.

    Prepare an icon file icon.ico and an hta file source.hta with the following contents:

    <HTML>
    <HEAD>
       <SCRIPT>
          path = document.URL;
          document.write(
           '<HTA:APPLICATION ID="oHTA" APPLICATIONNAME="myApp" ICON="'+path+'">');
       </SCRIPT>
    </HEAD>
    <BODY SCROLL="no">
      Hello, World!
    </BODY>
    </HTML>
    

    Open a command prompt and type:

    copy /b icon.ico+source.hta iconapp.hta
    

    That will concatenate the icon and hta into a single file.

    In my test case Internet explorer skipped over the icon data and display the HTML correctly.

    The path of the icon is then set to that of the .hta file itself using javascript and the icon is loaded.

    I have tested this on Windows XP SP3, Internet explorer 8.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a standalone Java application that I've packaged into a jar file
I have a web application written in pure JavaScript (no pre-generated HTML except for
I have a written up HTML file using the Google Maps API v3. All
I have written xml file which contains html tags as element like <component> <input
I have written a application that parses the html code of some web pages.
My Silverlight application needs one parameter, an integer. In my Html, I have written:
I have written an application in Code Igniter. Unless i declare the <!DOCTYPE HTML>
I have written file form.php in application/classes/form.php <?php defined('SYSPATH') or die('No direct script access.');
I have written some code in my VB.NET application to send an HTML e-mail
I have written an application that takes some HTML files exported by SSRS and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.