<%
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(server.mappath("../content/images/"&=imagewidth&"x"&=imageheight&""&=rs("preview")&""&=imageformat&""))
response.write "这个文件大小:"&f.size&"字节"
set fso=nothing
%>
错误类型:
Microsoft VBScript 编译器错误 (0x800A03EA)
语法错误
/uniwap17/listpic2.asp, line 76, column 56
Set f = fso.GetFile(server.mappath("../content/images/"&=imagewidth&"x"&=imageheight&""&=rs("preview")&""&=imageformat&""))
-------------------------------------------------------^
<%
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(server.mappath("test.txt"))
response.write "这个文件大小:"&f.size&"字节"
set fso=nothing
%>