当通过任何 FTP 客户端上传文件时,我正在尝试在 IIS 6 中设置电子邮件通知警报。有谁知道如何做到这一点?
我发现了类似的东西,但不明白如何实现它: http ://forums.iis.net/t/1196793.aspx/1?How+to+add+email+notification+service+in+IIS+6+ 0+当+a+文件+是+上传+通过+FTP+
有人对此有任何见解吗?
function countFolders(strPath)
dim objShell
dim objFolder
dim folderCount
set objShell = CreateObject("shell.application")
set objFolder = objShell.NameSpace(strPath)
if (not objFolder is nothing) then
dim objFolderItems
set objFolderItems = objFolder.Items
if (not objFolderItems Is Nothing) then
folderCount=objFolderItems.Count
end if
set objFolderItem = nothing
end if
set objFolder = nothing
set objShell = nothing
countFolders=folderCount
end function