Click here to Skip to main content
15,891,033 members
Everything / HTA

HTA

HTA

Great Reads

by Federico Aponte
An application to inspect a COM TypeLib and generate IDL and .manifest files. The tool is made as an HTML application using JavaScript for the logic.
by Marijan Nikic
HTA application written in Javascript and VBscript for tracking and sorting movies list by their release date

Latest Articles

by Marijan Nikic
HTA application written in Javascript and VBscript for tracking and sorting movies list by their release date
by Federico Aponte
An application to inspect a COM TypeLib and generate IDL and .manifest files. The tool is made as an HTML application using JavaScript for the logic.

All Articles

Sort by Score

HTA 

1 Nov 2011 by Federico Aponte
An application to inspect a COM TypeLib and generate IDL and .manifest files. The tool is made as an HTML application using JavaScript for the logic.
23 May 2013 by Sergey Alexandrovich Kryukov
All you need is described here:http://httpd.apache.org/docs/current/howto/htaccess.html[^].And this is the description of Redirect: http://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect[^].This is an interesting application helping to simplify configuration:...
20 May 2012 by rezann
Dear all,I am trying to launch an HTA file through my apsx web page. However, a dialog pops up asking "what I want to do with the file: open/save/cancel". My question is, how can I bypass this dialog and move directly to open the HTA file. In most of the posts I perused over the net, they...
20 May 2012 by Richard MacCutchan
Yes this is a security issue in order to protect users from viruses, trojan horses and other malicious objects. You can set some browsers to do an automatic save of all files but it is the browser user's choice.
12 Jan 2013 by Raghubir_Sarkar
Hi there,I have created a html application, how can i convert it into win32 application ?
12 Jan 2013 by Zoltán Zörgő
Rewrite it. A HTA is an offline web page with high access scripting support. Actually there are tools, (like this one: http://www.scriptcode.com/battoexe/[^]), that can convert it to exe, but it is actually adding a wrapper around it, thus you won't get something completely new.Some...
23 May 2013 by Yafa Su
I have a multi-languages website with urls like:fr.mysite.comes.mysite.comit.mysite.comI want to change it with .htacces to mysite.comis it possible for all of them?
25 Jul 2013 by namhung1986
Hi, first of all thank you in advance for any help.I would like to run a client program from a web page. The scenario like when I click a "Run notepad" button on a web site, it will start notepad.exe in my computer.I have tried .hta, and it can run well. But I have to save .hta to my...
25 Jul 2013 by _Asif_
Check this link. It has given a code to execute notepad from browser though you may need to tweek it a bithttp://social.msdn.microsoft.com/Forums/en-US/3444c3c3-eef7-4f6b-b67c-086e34fc74be/how-to-execute-an-executable-file-ex-notepad-using-javascript-which-will-work-in-mozilla-firefox[^]
26 Jul 2013 by Prashant Kothale
MyObject = new ActiveXObject( "WScript.Shell" ) function RunNotePad() { MyObject.Run("notepad") ; } Run a Program ...
8 Oct 2014 by robwm1
Hi,I am creating an HTA to use as a utility. Part of what it needs to do is output its activity to a log file. If someone were to close the window using the X in the upper right corner, is there a way to code it so the log file is closed first? I know you can do this with Windows Apps...
8 Oct 2014 by Sergey Alexandrovich Kryukov
You can do it by handling the event window.onunload. Please see, for example: http://www.thecodingforums.com/threads/catching-window-close-event-in-hta.931828[^].—SA
9 Oct 2014 by robwm1
I ran a test and this should work for me:Sub window_onbeforeunload MsgBox "Close log files - Cleanup memory"End Sub Of course you would use code that actually closes a log file or any other tasks that need to be done before the app closes. This is merely to demonstrate how it...
12 Feb 2016 by Richard Deeming
An HTA file[^] is the equivalent of an executable. You cannot launch an executable from script running in a browser. If you could, it would be a major security vulnerability.
18 Jul 2017 by Member 13317291
I have a multi paged HTA that when the users go between HTA's it displays at different locations on the screen. What I would like is for the user to have the next page open at the same x, y coordinates as the previous. What I do not want is for me to specify where the pages open every time. For...
14 May 2011 by Sandeep Mewara
It's a breach mechanism on others system. Based on what you are trying to do, disabling a firewall on some click just sounds like a step towards a trojan/virus entry. Wrong forum and wrong people you are asking this. We do not support or encourage anyone in creating virus kind of activity.
19 May 2020 by Marijan Nikic
HTA application written in Javascript and VBscript for tracking and sorting movies list by their release date
11 Feb 2016 by Member 12322496
I want to execute a .hta file from an HTML page, what should I do to run it. Kindly help.What I have tried:I tried calling the .hta file with tag, but its not working.
14 May 2011 by sg_90
Hi im trying to enable or disable windows firewall using javascript by click on a button in a browser. If the firewall is enabled the click should disable the firewall and if it is disabled the click should enable the firewall (simple if statement)My code is listed...
4 Sep 2015 by Nandeotifur
I am currently trying to extend functionality of a HTA/vbscript. The current coding will allow to look up a single user on AD, allow password reset, unlocking of account as well as display name, description, employee type, email, password validity timeframe, account status, home postal address,...
17 Apr 2017 by Member 9923947
I'm trying to programmatically add a button element to an HTA. I wrote the following code as a test. The button, "Button1", gets added to the HTA window, but when I click it, it doesn't run the "subButtonClickedMsg" subroutine. No error messages are produced. I added the other two buttons...