Hi,

How can I know whether a folder is empty using FileSystemObject? Thanks.

Atse

Re: empty folder by Ray

Ray
Wed Oct 15 15:37:44 CDT 2003

Set oFSO = Server.CreateObject("Scripting.FileSystemObject")

bDirIsEmpty =
Server.CreateObject("Scripting.FileSystemObject").GetFolder("C:\path").Files
.Count = 0

Ray at work

"atse" <dunggaze@yahoo.com> wrote in message
news:11ijb.117200$ko%.114363@news04.bloor.is.net.cable.rogers.com...
> Hi,
>
> How can I know whether a folder is empty using FileSystemObject? Thanks.
>
> Atse
>
>



Re: empty folder by atse

atse
Wed Oct 15 23:23:01 CDT 2003

Thanks, Ray. Any idea with the previous question regarding "import txt into
database"?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OriKxw1kDHA.2272@tk2msftngp13.phx.gbl...
> Set oFSO = Server.CreateObject("Scripting.FileSystemObject")
>
> bDirIsEmpty =
>
Server.CreateObject("Scripting.FileSystemObject").GetFolder("C:\path").Files
> .Count = 0
>
> Ray at work
>
> "atse" <dunggaze@yahoo.com> wrote in message
> news:11ijb.117200$ko%.114363@news04.bloor.is.net.cable.rogers.com...
> > Hi,
> >
> > How can I know whether a folder is empty using FileSystemObject? Thanks.
> >
> > Atse
> >
> >
>
>



Re: empty folder by atse

atse
Sat Oct 18 21:54:30 CDT 2003


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OriKxw1kDHA.2272@tk2msftngp13.phx.gbl...
> Set oFSO = Server.CreateObject("Scripting.FileSystemObject")
>
> bDirIsEmpty =
>
Server.CreateObject("Scripting.FileSystemObject").GetFolder("C:\path").Files
> .Count = 0

I don't know how to determine this folder is empty by these code?


> Ray at work
>
> "atse" <dunggaze@yahoo.com> wrote in message
> news:11ijb.117200$ko%.114363@news04.bloor.is.net.cable.rogers.com...
> > Hi,
> >
> > How can I know whether a folder is empty using FileSystemObject? Thanks.
> >
> > Atse
> >
> >
>
>