Tabla de Contenidos
mshta.exe es el proceso que ejecuta los hta
como incorporar una imagen sin adjuntar un archivo: It’s a bit longer than the usual <img src=”image.png” alt=”Image”> tag. But it allows for images in an HTA without additional files. The way it works is by taking the file you want to embed, and converting it to Base64. There are several online tools to do this, but I’ve been using this command line utility for the sake of bandwidth.
Once you have the blob of Base64 data, start an image tag with the src attribute set to “data:image/png;base64,” and append the data afterward. The first part is needed to tell the browser what the image type is, and the encoding. The image type doesn’t need to be PNG, any type can be used as long as the MIME type is changed accordingly. Data URI’s work for most media types, so other things besides images can be embedded this way. Now for Icons. I found this piece of information on the MSDN page for the HTA Icon property. The solution is to use the copy command, which will append the icon data onto the front of the HTA. Before the HTML starts.
First, add this line to your HTA to specify the icon. If you have an hta: application tag already, you can add the “icon=”#”” line to it:
<hta:application icon=“#”>
Then, open a command prompt, and use this command, substituting the appropriate names:
copy icon.ico /b /y +original.hta originalWithIcon.hta
The + before original.hta tells the copy command to append that file onto the file being copied. With originalWithIcon.hta being the output file. /b tells copy that icon.ico is a binary file. And /y just suppresses the overwrite messages.
At this point, if you open the new HTA in a text editor you’ll see some unreadable characters before the HTML starts. That is the icon data. With that embedded, the icon will now appear in your system tray when you run the file.
(visto en: http://www.john-am.com/2010/07/building-a-self-contained-hta-with-embedded-images-and-icons/)
la aplicacion en si: https://technet.microsoft.com/en-us/library/ee692768.aspx
descargas recomendadas
hta helpomatic sms 2003 recipes greg ramsey
ejemplos de hta
preguntas frecuentes
this publisher could not be verified
cuando intentamos ejecutar el script, nos advierte de que no se ha podido verificar la firma
The file that you try to access from the network drive does not have a valid digital signature that verifies its publisher. That’s the reason you get the message.
This is the result of Microsoft trying to protect users from malicious programs. The message will appear for any shortcut or executable that is hosted on a network share.
To resolve the issue, follow the below steps:
1. First, determine what server the shortcut is hosted on.
2. Open Internet Explorer.
3. Click Tools, then Internet Options.
4. Click the ‘security’ tab. Once you are on this tab. Make sure you first click “Local Intranet”, and then the “Sites” button. Click it.
5. On the form that is displayed, click ‘Advanced’.
You will be shown a list of sites that are in the “Local Intranet”
6. To add your server to the list. Type file:server where 'server' is the name of your server, Click ‘Add’. 7. Click OK, on the rest of the dialogs to get out of the settings for Internet Explorer. Now, you can create shortcuts that point to that server, and no “Publisher cannot be verified” dialogs will be shown. === para desarrolladores === Run gpedit.msc Go to User Configuration » Administrative Templates » Windows Components » Attachment Manager Add “*.exe” to the “Inclusion list for moderate risk file types” setting. “This policy setting allows you to configure the list of moderate risk file types. If the attachment is in the list of moderate risk file types and is from the restricted or Internet zone, Windows prompts the user before accessing the file. …” In other words, this allows you to run an .exe from the Intranet zone without a prompt, but it will warn before running one from the Internet. ===== referencias ===== https://www.599cd.com/tips/hta/beginner/tabs/ http://www.john-am.com/2010/07/building-a-self-contained-hta-with-embedded-images-and-icons/ https://technet.microsoft.com/en-us/library/ee692769.aspx
