vbs 文件称为 Main.vbs。现在我将它嵌入到 .html 文件中,如下所示:
<HTML>
<HEAD>
<script type="text/vbscript">
sub main
const runminimized = 7
const wait_for_end = false
Set wshShell = CreateObject("WScript.Shell")
WshShell.Run "D:\VA\Main.vbs",runminimized, wait_for_end
end sub
</script>
</HEAD>
<BODY>
Please make sure that the reuired Excel sheet which you are giving me to process isn in the proper folder. And first sheet has all the required columns - missing any of them could leads the Scripts to be failed.
<button onclick="vbscript:main" >Click here to Run</button>
</BODY>
</HTML>
我想设置一个计时器,它将在页面上运行直到所有脚本结束。可以在这里设置吗?