- randomize
- set fso = CreateObject("Scripting.Filesystemobject")
- set a = CreateObject("Scripting.Dictionary")
- set file = fso.OpenTextFile("H:\代码.txt")
- do until file.AtendofStream
- m = m + 1
- a.add m,file.readline
- loop
- file.close
- h=int(rnd * m + 1)
- if h = m then h = m - 1
- if h = 1 then h = 2
- for i = h-1 to h+1
- str = str & a(i) & vbCrLf
- Next
- 'msgbox str
- CreateObject("WScript.Shell").Run "G:\nircmd.exe clipboard set "&chr(34)&str&chr(34)
复制代码
|