返回列表 上一主題 發帖

[轉貼] ASP如何確定C 碟指定的是否目錄存在

[轉貼] ASP如何確定C 碟指定的是否目錄存在

<html>

<head>
<title></title>
</head>

<body>
<%
FolderName = "c:\temp"

Set fs = CreateObject("Scripting.FileSystemObject")

IF fs.FolderExists(FolderName) Then
     Response.write  "您指定的目錄存在"
Else
     Response.write  "您指定的目錄不存在"
End IF

Set fs = nothing
%>
</body>
</html>
程式人員

        靜思自在 : 滴水成河。粒米成蘿,勿輕己靈,勿以善小而不為。
返回列表 上一主題