2010-06-26 19:48:49
/ [QuickTest Professional]
经常看到 CreateObject 和 WScript.CreateObject 以及 GetObject 的用法,一直想知道它们的区别,虽然手册可以查到相关信息,但总是感觉比较模糊。终于在微软脚本中心找到了一篇文章:http://technet.microsoft.com/zh-cn/library/ee176980(en-us).aspx,经过自己的理解,简化的翻译了一下:VBScriptCreateObject(servername.typename [, location])GetObject([pathname] [, class])WSHobject.CreateObject(strProgID[,strPrefix])object.GetObject(strPathname [,strProgID], [strPrefix])CreateObjectvs. Get.
查看(1340)
评论(2)