determine a empty folder

A

atse

Hi,

I still don't know how to determine a empty folder. Can you tell me more
detail? thanks

Atse
 
R

Ray at

<%
sFolder = "C:\Folder"
bFolderIsEmpty =
Server.CreateObject("Scripting.FileSystemObject").GetFolder(sFolder).Files.C
ount = 0
If bFolderIsEmpty Then
Response.Write "It's empty."
Else
Response.Write "It's not empty."
End If
%>

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,132
Messages
2,570,775
Members
47,333
Latest member
DongPouncy

Latest Threads

Top