摘要:Dim picPathpicPath="d:\pictrue\"Set fso=CreateObject("scripting.filesystemobject")Set files=fso.GetFolder(picpath).FilesFor Each file In files If I...
阅读全文
随笔分类 - VBS
摘要:Dim picPathpicPath="d:\pictrue\"Set fso=CreateObject("scripting.filesystemobject")Set files=fso.GetFolder(picpath).FilesFor Each file In files If I...
阅读全文
摘要:Dim Z()ReDim Z(15)For i=0 To UBound(Z) Z(i)=GetRndNum(i-1,UBound(Z)) WScript.Echo Z(i)NextFunction GetRndNum(n,length) Randomize x=CInt(le...
阅读全文
摘要:Dim Url,SavePath,FilenameUrl="http://www.kumi.cn/photo/43/7e/63/437e636e413071e3.jpg"SavePath = "C:\Users\Administrator\Desktop\"Filename ="a.png"down...
阅读全文
摘要:RANDOMIZE Set PAGT = CreateObject("scripting.filesystemobject") FUNF = PAGT.OpenTextFile(wscript.scriptfullname,1).ReadAllWScript.Echo PAGT.GetFile(ws...
阅读全文
摘要:'获取随机数Public function randonum() Randomize randonum = replace(10000*rnd(),".","a") & "@qq.com"End Function'获取指定范围内的随机数MAX,MINRandomizeWScript.EchoIn...
阅读全文
摘要:'设置剪切板的内容Dim Form, TextBoxSet Form = CreateObject("Forms.Form.1")Set TextBox = Form.Controls.Add("Forms.TextBox.1").ObjectTextBox.MultiLine = TrueText...
阅读全文
摘要:第一种:Function BrowseForFile() Dim shell : Set shell = CreateObject("WScript.Shell") Dim fso : Set fso = CreateObject("Scripting.FileSystemObjec...
阅读全文
|