Categories

HTA applikacia

HTA aplikácia je html súbor premenovaný s koncoukou .hta, spustiteľný ako stand-alone aplikácia. Príklad ako bez varovania spustíme exe súbor prostredníctvom HTA aplikácie.

<html>
<head>
<script language=”VBScript”>
Sub RunProgram
Const NORMAL_WINDOW = 1
Set objShell = CreateObject(“Shell.Application”)
objShell.ShellExecute “notepad.exe”, “c:\windows\win.ini”, , , NORMAL_WINDOW
End Sub
</script>
</head>
<body onload=”RunProgram”>
<button onclick=”RunProgram”>Run notepad</button>
</body>
</html>

 

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>