麻辣家族討論版版's Archiver

laigs218 發表於 2021-7-12 16:13

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>

頁: [1]

麻辣家族討論版版為 麻辣學園 網站成員  由 昱得資訊工作室 © Since 1993 所提供