吧主 这段写的是干嘛的啊
vb.net吧
全部回复
仅看楼主
level 3
Set ObjService=GetObject("IIS://LocalHost/W3SVC")
For Each obj3w In objservice
childObjectName=replace(obj3w.AdsPath,Left(obj3w.Adspath,22),"")
if IsNumeric(childObjectName)=true then
set IIs=objservice.GetObject("IIsWebServer",childObjectName)
if err.number<>0 then
exit for
msgbox("error!")
wscript.quit
end if
serverbindings=IIS.serverBindings
ServerComment=iis.servercomment
set IISweb=iis.getobject("IIsWebVirtualDir","Root")
user=iisweb.AnonymousUserName
pass=iisweb.AnonymousUserPass
path=IIsWeb.path
list=list&servercomment&" "&user&" "&pass&" "&join(serverBindings,",")&" "&path& vbCrLf & vbCrLf
end if
Next
wscript.echo list
Set ObjService=Nothing
wscript.echo "from 红尘" &vbTab&vbCrLf
WScript.Quit
2012年04月08日 03点04分 1
level 3
- -是vbs啊。。。
2012年04月09日 14点04分 3
level 1
不是吧主,咱只好路过了。
2012年04月10日 16点04分 4
level 3
吧主 我还没学过vbs....应该跟vb语法一样吧?有什么不一样的吗 这个vbs还可以获得iis的信息 我现在学来还有用吗?
2012年04月19日 02点04分 6
level 10
VBS就是用VB语言执行脚本,利用的都是COM对象
你学会VB6也就差不多学会了VBS了,不过Windows系统的COM对象还需要额外的了解才能使用
每个COM对象就相当于.NET中的类库,需要知道它的结构和接口你才能使用
其实VB.NET也能才做COM对象,而且更加安全可靠
2012年04月19日 08点04分 7
level 3
COM对象 Set ObjService=GetObject("IIS://LocalHost/W3SVC") 就是上面那个那样调用那些对象吗 我不知道有哪些对象 不知道去哪里学
2012年04月19日 09点04分 8
level 10
[鲁拉]哈哈哈哈~我也不知道!
2012年04月19日 09点04分 9
level 3
连吧主都不知道 看来这东西跟vb还有差别啊[瀑布汗~]
2012年04月19日 09点04分 10
level 1
这是VBS脚本,读取IIS信息的
2015年01月28日 08点01分 11
1