指定的文件夹存在吗?

代码:

<!DOCTYPE html>

<html>

<body>

<%

Set fs=Server.CreateObject("Scripting.FileSystemObject")

 

If fs.FolderExists("c:\temp") = true Then

      Response.Write("Folder c:\temp exists.")

Else

      Response.Write("Folder c:\temp does not exist.")

End If

 

set fs=nothing

%>

 

</body>

</html>

结果:

Folder c:\temp does not exist.

相关文章