开发者

creating folders in Classic ASP

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜