Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I check a folder is empty 1

Status
Not open for further replies.

paulparky

Programmer
Oct 10, 2001
29
PA
Hi,
how do I check a folder is empty?

cheers
 
if dir$(c:\folder\*.*) = "" then
'folder is empty
else
'There are files in this folder
end if
 
ooops:

if dir$("c:\folder\*.*") = "" then
'folder is empty
else
'There are files in this folder
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top