【发布时间】:2013-07-04 17:07:41
【问题描述】:
我希望有一个脚本来从一个 17 字符长的数字中输出大量的连续数字(一次一百万)。 (EG 12345678912345678)
我基本上希望它像这个网站 (http://sequencegenerator.com) 一样工作,但使用我的 CPU 而不是他的。当我告诉他的网站做一百万时,他的网站就被锁定了,而我倾向于一次生成数百万。
我从网上找到了这个脚本,但我不知道任何 VisualBasic,所以我不确定如何让它为我工作。
Set WSHShell = Wscript.CreateObject("WScript.Shell")
Set FSO = Wscript.CreateObject("Scripting.FileSystemObject")
Set EnvVar = wshShell.Environment("Process")
tBestand= EnvVar("USERPROFILE") & "\Desktop\HexNumbers.txt"
Set Bestand = fso.createtextfile(tBestand,1)
For x = 1486262272 To 1486461337
Bestand.WriteLine(hex(x))
Next
Bestand.close
WScript.quit
【问题讨论】:
标签: vbscript numbers generator sequential