Code Block
<script language="javascript">
function runApp()
{
var excApp = new ActiveXObject("Excel.Application");
excApp.visible = true;
var excBook = excApp.Workbooks.open("c:\\test.xls");
idTmr = window.setInterval("Cleanup();",1000);
}
function Cleanup() {
window.clearInterval(idTmr);
//�strong>CollectGarbage�fire JScript's garbage collection to release the reference to Excel
CollectGarbage();
}
</script>