'********************************************
'函数名:deletefile
'作  用:删除指定的一个文件
'参  数:filename ----要删除的文件名
'返回值:无
'********************************************
function deletefile(filename)
if filename<>"" then
  set fso=server.CreateObject("scripting.filesystemobject")
  if fso.FileExists(server.MapPath(filename)) then '判断文件是否存在      
     fso.DeleteFile server.MapPath(filename)       
  end if
  set fso=Nothing
end if
end function

'********************************************
'函数名:GetAnExtension
'作  用:删除指定的一个文件
'参  数:filename ----要删除的文件名
'返回值:文件的扩展名
'********************************************
Function GetAnExtension(filename)
 Dim fso
 Set fso = CreateObject("Scripting.FileSystemObject")
 GetAnExtension = fso.GetExtensionName(filename)
 set fso=Nothing
End Function

作者:Else 's Blog
地址:http://www.aixq.com/post/362/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
  • 中查看更多“两个asp的函数,一个是扩展名的!”相关内容
  • 中查看更多“两个asp的函数,一个是扩展名的!”相关内容
  • 中查看更多“两个asp的函数,一个是扩展名的!”相关内容
  • 中查看更多“两个asp的函数,一个是扩展名的!”相关内容
  • 中查看更多“两个asp的函数,一个是扩展名的!”相关内容
  • 中查看更多“两个asp的函数,一个是扩展名的!”相关内容
  • Tags:
    代码 程序 编程 | 评论(0) | 引用(0) | 阅读(1602)
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]