最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

讀取目錄下的所有文件(包括子目錄下的所有文件)

 更新時(shí)間:2006年10月28日 00:00:00   作者:  
******************************

Many times we might need some part of code which will access all sub-folders of the server and also all
files within the sub-folder.
The following line of asp code will map to a specified folder and searches all the sub-folders
(Not recursively, code can be extended to do) and reads all files(basically text files) one by one.

You can specify any folder name, in the remarks given in the code (within " ")

'Create a File system Object
set FileSystem=server.CreateObject("scripting.filesystemobject")

dim dbconn

folderpath=server.MapPath("main Folder path" )
set sfolder=Filesystem.GetFolder(folderpath).SubFolders
for each FolderItem in sfolder
set Files=FolderItem.Files
for each FileItem in Files
fname=server.MapPath( "main folder path" & FolderItem.Name & "\" & FileItem.Name
set File=FileSystem.OpenTextFile(fname,1,false)
while File.AtEndofStream <> True
record=split(File.Readline,"~")
wend
File.close
FileSystem.DeleteFile(fname)
next
next


******************************

相關(guān)文章

最新評(píng)論

理塘县| 墨玉县| 嘉峪关市| 临西县| 孝昌县| 资溪县| 淳化县| 西和县| 河池市| 剑河县| 龙泉市| 苍梧县| 郸城县| 汕尾市| 洪江市| 昭苏县| 弥勒县| 博白县| 泾川县| 上饶县| 元谋县| 永嘉县| 南川市| 托里县| 丽水市| 绿春县| 平潭县| 双牌县| 思茅市| 宜兰县| 论坛| 苏尼特左旗| 炉霍县| 平利县| 镇沅| 嘉禾县| 镇安县| 都匀市| 连平县| 闸北区| 临朐县|