Set component = CreateObject( "Microsoft.CmdLib" )
If Err.Number Then
WScript.Echo(L_InfoUnableToInclude_ErrorMessage)
WScript.Quit(EXIT_METHOD_FAIL)
End If
Set component.ScriptingHost = WScript.Application
If CInt( component.checkScript() ) <> CONST_CSCRIPT Then
WScript.Echo (UseCscriptErrorMessage)
WScript.Quit(EXIT_UNEXPECTED)
End If作者: bagpipe 时间: 2006-8-22 20:31 progid = Microsoft.CmdLib
Method Name Description
CheckScript used to find whether CScript is used or not
vbPrintf Simulates the Printf function
getHostName used to get the current Host name
getUserName used to get the current User Name
getDomainName used to get the current Domain name
getPassword used to get the password from the user
trapError Reports error with a string saying what the error occurred in
getArguments used to get the arguments into appropriate variables
wmiConnect used to connect to wmi provider with the given credentials
packString Attaches spaces to a string to increase the length to intWidth
getMaxStringLen used to get length of the maximum length string in an array of strings
showResults used to show results in the desired format
validateDateTime To validate the date-time format specified
changeToWMIDateTime To format the given date-time
matchPattern checks whether a given value matches a particular pattern作者: electronixtar 时间: 2006-8-22 23:26 翻 MSDN作者: mobo 时间: 2006-9-19 09:01 标题: Microsoft.CmdLib类库的来源,方法和属性
'''本类库的来源,方法和属性如下,欢迎早日写出代码来供大家学习!
'''-------------浙江 墨伯[MOBO]
Library Scriptlet
C:\WINDOWS\system32\scrobj.dll
Microsoft Scriptlet Library
Sub AddURL(ByVal bstrURL As String)
Scriptlet.IGenScriptletTLib 的成员
Add a new scriptlet to the type library
Sub attachNotification(ByVal pdispHandler As Object)
Scriptlet.DIBehaviorHandlerOM 的成员
Function createEventObject() As Object
Scriptlet.DIBehaviorHandlerOM 的成员
Property Doc As String
Scriptlet.IGenScriptletTLib 的成员
The documentation for the type library
Property element As Object
只读
Scriptlet.DIBehaviorHandlerOM 的成员
Sub fireEvent(ByVal bstrEvent As String, [ByVal pdispEventObject As Object])
Scriptlet.DIBehaviorHandlerOM 的成员
Property GUID As String
Scriptlet.IGenScriptletTLib 的成员
The GUID for the type library
Property MajorVersion As Unsigned Integer
Scriptlet.IGenScriptletTLib 的成员
The major version number of the type library
Property MinorVersion As Unsigned Integer
Scriptlet.IGenScriptletTLib 的成员
The minor version number of the type library
Property Name As String
Scriptlet.IGenScriptletTLib 的成员
The name of the type library
Property Path As String
Scriptlet.IGenScriptletTLib 的成员
The path to the type library
Sub Reset()
Scriptlet.IGenScriptletTLib 的成员
Forget all the scriptlets added so far and start over.
Sub Write()
Scriptlet.IGenScriptletTLib 的成员
Write the type library out to disk.
'''应该说,还不算是很多的,比起FSO要好多了!