I was working with an application today that opened an hta file, and was looking at the options to open it without having the annoying prompt asking whether you want to save or open the file when opening it with Internet Explorer.
In reading about HTAs, I found out that opening HTAs in Internet Explorer is a built in security feature that cannot be overriden.
Digging around some more, I found a workaround that opens the .hta file without any additional prompts. In order to do this:
- Right click on an .hta file, and select “Open with…”
- from the list, select “Microsoft (R) HTML Application host.”
- Make sure the “Always use the selected program to open this kind of file”
That’s all, now when you double click your hta file, it will open right up without any annoying prompts.