IE ソースエディタ

  iesrc.vbs



WSH ですが、InternetExplorer.Application を使用して「ファイルを開くダイアログ」を使用してエディタのパスを
参照し、IE の「ソースの表示」用エディタを登録します

  
Dim Ie,WshShell
Dim strPath

Set Ie = CreateObject("InternetExplorer.Application")
Ie.Navigate( "about:blank" )

Ie.document.getElementsByTagName("BODY")(0).innerHTML = "<INPUT id=FilePath type=file>"
Ie.document.getElementById("FilePath").click
if ie.document.getElementById("FilePath").value = "" then
	WScript.Echo "ファイルは選択されませんでした"
	WScript.Quit
end if

strPath = ie.document.getElementById("FilePath").value

Ie.Quit
Set Ie = Nothing

Set WshShell = WScript.CreateObject("WScript.Shell")

' ****************************************************
' View Source Editor キーが無ければ作成します
' ****************************************************
WshShell.RegWrite _
	"HKLM\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\", _
	Empty

WshShell.RegWrite _
	"HKLM\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name\", _
	"""" & _
	strPath & _
	""""


MsgBox( "書き換えが終了しました" )
  












   SQLの窓    create:2006/06/05  update:2014/09/07   管理者用(要ログイン)





フリーフォントWEBサービス

SQLの窓WEBサービス

SQLの窓フリーソフト

写真素材

一般WEBツールリンク

SQLの窓

フリーソフト

JSライブラリ