小编Dou*_*owe的帖子

如何在Windows命令行中创建一个空的.html和.js文件?

我想知道是否可以在Windows命令行界面中创建一个空的.html和.js文件?如果是这样,我该如何实现?谢谢.

windows command-line-interface

2
推荐指数
1
解决办法
4840
查看次数

有谁知道我的vbscript代码中“ mscorlib:索引超出范围”是什么意思?

这是我的代码:

dim myArrayList

function addName

    Wscript.StdOut.WriteLine "What is your Quarterback's name?"
    n = Wscript.StdIn.ReadLine

    Wscript.StdOut.WriteLine "Attempts: "
    a = Wscript.StdIn.ReadLine

    Wscript.StdOut.WriteLine "Completions: "
    c = Wscript.StdIn.ReadLine

    Wscript.StdOut.WriteLine "Yards: "
    y = Wscript.StdIn.ReadLine

    Wscript.StdOut.WriteLine "Touchdowns: "
    t = Wscript.StdIn.ReadLine

    Wscript.StdOut.WriteLine "Interceptions: "
    i = Wscript.StdIn.ReadLine


Set myArrayList = CreateObject( "System.Collections.ArrayList" )
    myArrayList.Add n
    myArrayList.Add a
    myArrayList.Add c
    myArrayList.Add y 
    myArrayList.Add t
    myArrayList.Add i

end function 

addname()

function show
    for i = 1 to myArrayList.count
        Wscript.StdOut.WriteLine myArrayList(i)
    next
end function

show()
Run Code Online (Sandbox Code Playgroud)

我收到一条错误消息:“ …

vbscript arraylist mscorlib

0
推荐指数
1
解决办法
791
查看次数