Check empty folder

Results 1 to 2 of 2

Thread: Check empty folder

  1. #1
    Join Date
    Dec 1969

    Default Check empty folder

    How to check a folder which is empty (No file)?<BR><BR>I tried this but it can&#039;t work:<BR><BR>set fs = server.createobject("scripting.filesystemobject")< BR>if fs.FileExists("c: esting*.*")=false then<BR> response.write "No file was found"<BR>end if<BR>set fs = nothing<BR><BR>Any solution on this?

  2. #2
    Join Date
    Dec 1969

    Default RE: Check empty folder

    set objFolder = objFSO.getFolder("whateverfolder")<BR>If objFolder.files.count = 0 then<BR> &#039; no files<BR>End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts