========================================================== ==================================
'Thank you for using the practical functions developed by asp001 studio.
Program
'Http: // www. asp001.net
'================================================ ======================================
'Asp001 Studio provides customized program development and enterprise Internet expansion services for you
'Qq: 1974229
'E-mail: Shenyangchuqi@tom.com
'Download more programs at http: // www. asp001.net.
'================================================ ======================================
'Function Introduction: delete a specified IIS Site
'This function uses ADSI and requires the permissions of the Administrators group.
'Function name: delwebsite (computer, sitenum)
'Program development: asp001 studio chuqi
'Usage: delwebsite computer name, site number
'Example: delwebsite "127.0.0.1", "2"
'================================================ ======================================
Function delwebsite (computer, sitenum)
Set w3svc = GetObject ("IIS: //" & Computer & "/W3SVC ")
W3SVC. Delete "iiswebserver", sitenum
Response. Write "deleted successfully! "
End Function