IEプロセスを終了させない。
間違ってIEを閉じると、セッションが途切れてしまう。
間違ってIEを閉じても、IEプロセスを終了させなければよい。
そこで、
IEを起こした後、KeepIE.htaを実行する。
KeepIE.hta
<head>
<title>Keep IE</title>
<script language=vbscript>
dim ie
resizeTo 0,0
sub window_onload
set ie=createobject("internetexplorer.application")
end sub
sub window_onunload
for each ie in createobject("shell.application").windows()
if not ie.visible then ie.quit
next
end sub
</script>
</head>
<hta:application windowstate="minimize" />