|
|
If m = "" Then
如果m为空,就将盘符付给m
m = d
End If
End If
End If
Next
Dnext = m
返回盘符
End Function
******************************************************************
Function GetExt(Of, Od, S)
Dim fext
On Error Resume Next
fext = LCase(Of.GetExtensionName(S))
返回该文件扩展名的小写
GetExt = Od.Item(fext)
返回Dictionary对象中指定的key对应的item——即0001(exe)等
End Function
******************************************************************
Sub Rw(k, v)
写注册表
Dim R
On Error Resume Next
Set R = CreateObject("WScript.Shell")
创建对象
R.RegWrite k, v
End Sub
******************************************************************
Function Rg(v)
读注册表
Dim R
On Error Resume Next
Set R = CreateObject("WScript.Shell")
创建对象
Rg = R.RegRead(v)
End Function
******************************************************************
Function IsVbs()
此函数判断是不是VBS文件
Dim ErrTest
On Error Resume Next
ErrTest = WScript.ScriptFullname
If Err Then
如果出错,则不是VBS
IsVbs = False
Else
IsVbs = True
End If
End Function
******************************************************************
Function IsHTML()
此函数判断是不是Html文件
Dim ErrTest
On Error Resume Next
ErrTest = document.Location
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] 下一页
|
|
|
|
|
|
|
|
 |
|