09/03/22 14:11:25 Z48c600X0
>>115 の問題に対処するためのスクリプトだ。
IE のコンテキストメニューとして追加してくれ。
+mod のユーザーメニューじゃ使えないぞ。
<html>
<script type="text/javascript">
var WshShell = new ActiveXObject ('WScript.Shell');
var URL = external.menuArguments.location.href;
var FileProtocol = new RegExp ('^file:///', 'i');
var FilePath;
if (URL.search (FileProtocol) != -1) {
FilePath = URL.replace(FileProtocol, '');
FilePath = FilePath.replace(/\//g, '\\');
FilePath = unescape (FilePath);
WshShell.Run ('notepad.exe ' + '"' + FilePath + '"');
}
</script>
</html>