====================================================================================
'Thank you for using the practical function program developed by ASP001 Studio
'HTTP://WWW.ASP001.NET
'====================================================================================
'ASP001 Studio provides you with customized program development and enterprise Internet expansion services
'QQ: 1974229
'E-Mail: [email protected]
'For more programs download please go to HTTP://WWW.ASP001.NET
'====================================================================================
'Function Introduction: Delete the specified IIS site
'This function uses ADSI and requires Administrators group user permissions
'Function name: DelWebSite(Computer, SiteNum)
'Program Development: ASP001 Studio ChuQi
'Usage: DelWebSite computer name, site number
'Example: DelWebSite"127.0.0.1","2"
'====================================================================================
FunctionDelWebSite(Computer,SiteNum)
SetW3SVC=GetObject("IIS://"&Computer&"/w3svc")
W3SVC.delete"IIsWebServer",SiteNum
response.write "Delete successfully!"
EndFunction