开发者

creating folders in Classic ASP

开发者 https://www.devze.com 2023-03-07 04:32 出处:网络
I need to check if a 开发者_JAVA百科directory exists, and if not then create it.I know how to do this in .NET, but I am struggling with how to do this in classic ASP.Can anybody help?Use the following

I need to check if a 开发者_JAVA百科directory exists, and if not then create it. I know how to do this in .NET, but I am struggling with how to do this in classic ASP. Can anybody help?


Use the following snippet. Make sure you have write permission before executing the code.

set filesys=CreateObject("Scripting.FileSystemObject")
If  Not filesys.FolderExists("c:\website\") Then      
  filesys.CreateFolder ("c:\website\")   
End If
0

精彩评论

暂无评论...
验证码 换一张
取 消