xbox360刷机游戏还有吗:asp 动态地给图片命名

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 23:44:15
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile("d:\files\test.jpg")
f.name ="new.jpg"
可以将test.jpg 改名为new.jpg
而我想用表单中提交的pic=request.form("pic")代替要改为的图片名为什么不可以?为什么总是提示“为结束的字符常量”?
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile("d:\files\test.asp")
f.name ="<%=pic%>.asp"是不是格式写的不对?

f.name = pic + ".asp";