1).这个问题只能让你老板多掏钱了,放到数据库中去也一样.
2)如下:
dim fso,theFolder,FileName,FileType,FileSize,FileDate,FilePath
dim Path rem//文件所在文件夹
Path="c:\"
Set fso = CreateObject("Scripting.FileSystemObject")
Set theFolder = fso.GetFolder(server.MapPath(Path))
rem 开始循环
For Each objFile in theFolder.Files
FileName = objFile.Name '文件名
FileSize = objFile.size'文件大小
FileType = objFile.type '文件类型
FileDate = objFile.datelastmodified'最后修改时间
FilePath = server.MapPath(Path)&"\"&FileName'文件全路径
rem //***************把得到的路径放到对应的数据库中去
sql="insert into b(filepath) values('"&FilePath&"')"
.........
Next
set fso=nothing
set theFolder = nothing
set objFile = nothing