
ショコラ
JavaScript(JScript)でhta自身のファイル名を取得するには?
hta.commandLine でキメマス。

もっさん先輩
/([^\\]+)"/.exec(hta.commandLine)[1]
例
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<hta:application id="hta">
<script>
alert(/([^\\]+)"/.exec(hta.commandLine)[1]);
</script>
</head>
</html>
ポイントは、htaタグを定義することです。