"hta" file extension must be associated with some program that "knows" what to do with that file type.
If you know the program then you will need to create "file association" first and then use ShellExecute (this windows api function is much more powerful then ordinary Shell) api function to run the file.
All of the above can be found using forum search.