<html>
<голова>
<meta http-equiv = "content-type" content = "text/html; charset = gb2312">
<meta name = "Generator" Content = "Microsoft FrontPage 4.0">
<meta name = "progid" content = "frontpage.editor.document">
<название> панель инструментов </title>
<style>
<!-
Body, Table, P, TD, Div, Select {Font: Menu}
.button {Boder: 0; Высота: 20px; ширина: 60px; курсор: рука; шрифт: меню}
->
</style>
</head>
<тело>
<Сценарий языка = javascript>
функция run (strpath) {
exe.value = strpath;
пытаться {
var objshell = new ActivexObject ("wscript.shell");
objshell.run (strpath);
objshell = null;
}
Catch (e) {alert ('файл не найден "'+strpath+'" "(или один из его компонентов). Убедитесь, что путь и имя файла верны и что требуемые файлы библиотеки доступны
Полем ')
}
}
</Script>
<p> Сохраните как файл HTA и запустите <br>
Пожалуйста, введите программу для запуска: <br> <input name = exe type = text size = 20 value = "regedit"> <button class = кнопка onclick = "run (exe.value)"> ok
</Button> <button class = button onclick = exe.value = "";> повторное внедрение </button> <br>
<Button Class = Button OnClick = "run ('notepad')"> Блокнот </button> <br>
<Button class = button onclick = "run ('mspaint')"> чертежная доска </button> <br>
<Button Class = кнопка OnClick = "Run ('calc')"> калькулятор </button> <br>
<Button Class = Button OnClick = "run ('cmd')"> cmd </button> <br>
<Button class = button onclick = "run ('regedit')"> regedit </button> <br>
<Button class = button onclick = "run ('msconfig')"> msconfig </button> <br>
<Button Class = Button OnClick = "run ('file: /// d: /program%20files/winamp/winamp.exe')"> winamp </button> <br>
<Button class = button onclick = "run ('iexplore.exe')"> т.е. </button> <br>
<Button class = button onclick = "run ('..')"> .. </button> <br>
<Button Class = Button OnClick = "run ('%windir%')">%windir%</button> <br>
<Button class = button onclick = "run ('%temp%')">%temp%</button> <br>
</p>
</body>