Set deleteFileObject=Server.CreateObject("Scripting.FileSystemObject")
delefilepath=Server.MapPath(filepath)
if deleteFileObject.FileExists(delefilepath) then
Response.Write("<div class="pageIcon">存在这个文件")
string fileNameFileInfo file=new FileInfo(Server.MapPath("~/" + @"Images\Logo.jpg"))
if(file.Exists)
{
fileName=@"Images\Logo.jpg"
}
else
{
fileName=""
}
改成这样再试哈
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)