![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-02 02:22 |
共 48,037 主题排行 / 350,122 发帖 / 今日 2 篇 / 48,250 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » 麻烦总结关于"Microsoft.CmdLib"详细所有的属性,方法. |
| 可打印版本 1,254 / 3 |
| 第1楼 piziliu2004 | 发表于 2006-08-22 19:07 |
| 中级用户 发帖 139 积分 321 | |
|
麻烦总结关于"Microsoft.CmdLib"详细所有的属性,方法. 目前我在一vbs中看到有"Microsoft.CmdLib"这个对象.如下面代码所示.
感觉他的ScriptingHost,checkScript() 分别是设置脚本执行的是cscript,还是wscript,并检查设置. 我在网上没有查到更多的关于Microsoft.CmdLib"对象的属性,和方法.麻烦大家总结一下这个对象所有的属性,方法. 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 |
|
| 第2楼 bagpipe | 发表于 2006-08-22 20:31 |
| 银牌会员 发帖 425 积分 1,144 来自 北京 | |
|
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 |
|
| 第3楼 electronixtar | 发表于 2006-08-22 23:26 |
| 铂金会员 发帖 2,672 积分 7,493 | |
|
翻 MSDN
|
|
| 第4楼 mobo | 发表于 2006-09-19 09:01 |
| 初级用户 发帖 30 积分 73 | |
|
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要好多了! |
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |