[英]How do I close a window that was opened with a .hta from the command line? (not manually)
說我給命令test.hta
彈出一個窗口顯示頁面。 如何從命令行關閉該窗口? 我不在場,因此無法手動執行。 這是一個正在運行的批處理腳本。
上面的評論者幫助我解決了這個問題。 可以通過.hta文件中的jscript代碼完成。 這是模式:
<html>
<head>
<script type="text/javascript">
function myclose()
{
close();
}
setTimeout(myclose, 3000);
</script>
</head>
<body>
The Sun is shining down on you today :)
</body>
</html>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.