如何使HTA应用程序接受命令行参数? [英] How to get an HTA application to accept command line arguments?
本文介绍了如何使HTA应用程序接受命令行参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Sub Window_onLoad
arrCommands = Split(ITTool.commandLine, chr(34))
For i = 3 to (Ubound(arrCommands) - 1) Step 2
MsgBox arrCommands(i)
Next
End Sub
运行HTA应用程序时,我得到:
When I run my HTA application, I get:
arrCommands未定义
arrCommands is undefined
I am trying to make an HTA app that accepts command line arguments (optional).
推荐答案
您的脚本部分包含 查看全文