返回列表 上一主題 發帖

[轉貼] 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>
程式人員

        靜思自在 : 【是否發揮了良能?】人間壽命因為短暫,才更顯得珍貴。難得來一趟人間,應問是否為人間發揮了自己的良能,而不要一味求長壽。
返回列表 上一主題