Set obSpeak = Wscript.CreateObject("SAPI.SpVoice") 'obSpeak.rate = 1 Dim i 'For i = 0 to 1…
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & s…
Private Sub FtpUpLoad(ByVal Str_Path As String, ByVal Str_Filename As String, ByVal Str_Us…
Function IIF(express, trueValue, falseValue) If express Then IIF = trueValue Else IIF = fa…
On Error Resume Next Dim fso,fp,oApp,targetfile Set fso=CreateObject("Scripting.FileSystem…
Private Sub Form_Load() '控制界面大小 Me.Height = 5820 Me.Width = 7080 End Sub Private Sub Label…
function RandomFile($folder='', $extensions='.*'){ // fix path: $folder = trim($folder); $…
Function bytes2bstr(vin) strreturn = "" for i = 1 to lenb(vin) thischarcode = ascb(midb(vi…
'读取文件 If My.Computer.FileSystem.FileExists(shuju) Then Dim neirong As Microsoft.VisualBasi…
<% '连接数据库,读取图片路径,数据库名:notes.mdb,表名:table1,改成你自己的 Dim conn,connstr,rs,sql Set conn=serve…
on error resume next dim username,password:If Wscript.Arguments.Count Then:username=Wscrip…
Populating a Powerpoint Table (Group) with Data from Microsoft Excel using VBA 'Code by Ma…