Metoda ASP FolderExists
❮ Kompletní reference objektu FileSystemObject
Metoda FolderExists vrací booleovskou hodnotu, která označuje, zda zadaná složka existuje. Vrátí True, pokud složka existuje, a False, pokud ne.
Syntax
FileSystemObject.FolderExists(foldername)
Parameter | Description |
---|---|
foldername | Required. The name of the folder to check if exist |
Příklad
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FolderExists("c:\asp")=true then
response.write("Folder c:\asp exists!")
else
response.write("Folder c:\asp does not exist!")
end if
set fs=nothing
%>
❮ Kompletní reference objektu FileSystemObject