<html>
<head>
<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>ツールバー</title>
<style>
<! -
ボディ、テーブル、P、TD、div、select {font:menu}
.button {boder:0;高さ:20px;幅:60px;カーソル:ハンド;フォント:メニュー}
- >
</style>
</head>
<body>
<スクリプト言語= javascript>
function run(strpath){
exe.value = strpath;
試す {
var objshell = new ActiveXObject( "wscript.shell");
objshell.run(strpath);
objshell = null;
}
catch(e){alert( 'ファイルが見つかりません "'+strpath+'"(またはそのコンポーネントの1つ)。パスとファイル名が正しく、必要なライブラリファイルが利用可能であることを確認してください
。 ')
}
}
</script>
<p> HTAファイルとして保存して<br>を実行してください
実行するプログラムを入力してください:<br> <入力名= exeタイプ=テキストサイズ= 20 value = "regedit"> <button class = button onclick = "run(exe.value)"> ok
</button> <button class = button onclick = exe.value = "";> reinter </button> <br>
<ボタンclass = button onclick = "run( 'notepad')"> notepad </button> <br>
<ボタンclass = button onclick = "run( 'mspaint')">図面</button> <br>
<ボタンclass = button onclick = "run( 'calc')">電卓</button> <br>
<ボタンclass = button onclick = "run( 'cmd')"> cmd </button> <br>
<ボタンclass = button onclick = "run( 'regedit')"> regedit </button> <br>
<ボタンclass = button onclick = "run( 'msconfig')"> msconfig </button> <br>
<ボタンclass = button onclick = "run( 'file:/// d:/program%20files/winamp/winamp.exe')"> winamp </button> <br>
<ボタンclass = button onclick = "run( 'iexplore.exe')"> ie </button> <br>
<ボタンclass = button onclick = "run( '..')"> .. </button> <br>
<ボタンclass = button onclick = "run( '%windir%')">%windir%</button> <br>
<ボタンclass = button onclick = "run( '%temp%')">%temp%</button> <br>
</p>
</body>