源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

asp实现检查目录是否存在与建立目录的函数

  • 时间:2021-05-15 13:40 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:asp实现检查目录是否存在与建立目录的函数
'------------------------- '--检查目录是否存在 '---------------------- Function CheckDir(byval FolderPath)     dim fso     Set fso = Server.CreateObject("Scripting.FileSystemObject")     If fso.FolderExists(Server.MapPath(folderpath)) then     '存在         CheckDir = True     Else     '不存在         CheckDir = False     End if     Set fso = nothing End Function '------------------------- '--建立目录 '---------------------- Function MakeNewsDir(byval foldername)     dim fso     Set fso = Server.CreateObject("Scripting.FileSystemObject")         fso.CreateFolder(Server.MapPath(foldername))         If fso.FolderExists(Server.MapPath(foldername)) Then            MakeNewsDir = True         Else            MakeNewsDir = False         End If     Set fso = nothing End Function
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部