美文网首页
纯的vbscript脚本没有main函数

纯的vbscript脚本没有main函数

作者: leoatchina | 来源:发表于2016-06-10 10:38 被阅读73次

在写一个python和vbs混编的脚本时发现的

Dim args
Set args = WScript.Arguments

If args.Count = 1 Then
    test= WScript.Arguments(0)
else
    test="count !=1"
end if
alert test

public sub alert(str)
    if str ="" then str="finish"
    msgbox str
end sub

相关文章

网友评论

      本文标题:纯的vbscript脚本没有main函数

      本文链接:https://www.haomeiwen.com/subject/sfjsdttx.html