如何使HTA应用程序接受命令行参数? [英] How to get an HTA application to accept command line arguments?

查看:221
本文介绍了如何使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).

推荐答案

您的脚本部分包含 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆