set myfileobject=server.createobject("scripting.filesystemobject")
' myfilepath=server.mappath("vod.asx") 'O文件路c文件名
myfilepath=server.mappath("vod.asx")
set mytextfile=myfileobject.createtextfile(myfilepath)
'''''''''''''''''''''''''''''''''''''' _始文件
a="<asx version = " & chr(34) & "3.0" & chr(34) & ">"
mytextfile.writeline(a)
mytextfile.writeline(" <title>阅读器</title>")
dim x
x=1
dim y
y=Request.Form("upcount")+1
do while x < y '轮回播放文件
if Request.Form("file" & x)<>"" then
mytextfile.writeline("<entry>")
b="<ref href = " & chr(34) & Request.Form("file" & x) & chr(34) & "/>"
mytextfile.writeline(b)
mytextfile.writeline("</entry>")
end if
x=x+1 '轮回播放文件Y束
loop