一个使用 FSO 的 класс , 前面的文章也有提到。这里有比较多的一些实例。
<%
DimmyfileFolder
SetMyFileFolder = newFileFoldErcls
'' Recsion.writemyfilefolder.moveafile ("f: /123/4561.exe", "f: /123/4562.txt")
'' Response.writemyfilefolder.moveafolder ("f:/456", "f:/ditg/456")
'' Response.writemyfilefolder.showfilesystemtype ("i:/")
'' Response.writemyfilefolder.copyafile ("f: /123/4562.txt", "f: /123/4563.txt")
'!!!!
'' Repply.writemyfilefolder.copyafolder ("f:/123/", "f:/789/")
'' Response.writemyfilefolder.showfolderlist ("f:/ditg")
'' Response.writemyfilefolder.showfilelist ("f:/123/123")
'' Recsion.writemyfilefolder.deleteafile ("f: /123/4562.txt")
'' Response.writemyfilefolder.deleteafolder ("f:/456/")
'' Response.writemyfilefolder.createFolderDemo ("f:/147/")
'' Response.writemyfilefolder.getFilesize ("f: /123/4563.txt")
'' Response.writemyfilefolderer.getFolderSize ("f: /123/123.txt")
'' Response.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 1) & "<br>"
'' Response.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 2) & "<br>"
'' Response.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 3) & "<br>"
'' Recsion.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 4) & "<br>"
'' Response.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 5) & "<br>"
'' Response.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 6) & "<br>"
'' Recsion.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 7) & "<br>"
'' Response.writemyfilefolder.showfileAccessInfo ("f: /123/123.txt", 8) & "<br>"
'' Response.writemyfilefolder.showfolderaccessinfo ("f:/123/", 1) & "<br>"
'' Response.writemyfilefolder.showfolderaccessinfo ("f:/123/", 2) & "<br>"
'' Response.writemyfilefolder.showfolderaccessinfo ("f:/123/", 3) & "<br>"
'' Response.writemyfilefolder.showfolderaccessinfo ("f:/123/", 4) & "<br>"
'' Response.writemyfilefolder.showfolderaccessinfo ("f:/123/", 5) & "<br>"
'' Response.writemyfilefolder.showfolderaccessinfo ("f:/123/", 6) & "<br>"
'' Recsion.writemyfilefolder.showfolderaccessinfo ("f:/123/", 7) & "<br>"
'' Response.writemyfilefolder.showfolderaccessinfo ("f:/123/", 8) & "<br>"
'' Response.writemyfilefolder.writetxtfile ("f: /123/cexo.txt", "", 1) & "<br>"
'' Response.writemyfilefolder.writetxtfile ("f: /123/cexo.txt", "cexowxfdw", 1) & "<br>"
'' Repply.writemyfilefolder.writetxtfile ("f: /123/cexo.txt", CHR (13) и Chr (10)
& "cexowxfdw", 2) & "<br>"
'' Response.writemyfilefolder.readtxtfile ("f: /123/cexo.txt") & "<br>"
Response.writemyfilefolder.displayleveldepth ("f:/ditg/ditg/bumen/images") и "<br>"
ClassFilefoldercls
Publicfso
Privatesubclass_initialize ()
Setfso = createObject ("scripting.filesystemobject")