file listing in VB 6.0 ??

  • Thread starter Thread starter Daniel Bass
  • Start date Start date
D

Daniel Bass

I want to write a function that deletes files at a given location older than
a set amount of days...

in .Net you can just call GetFileSystemEntries(...) to get the list and
create a FileInfo object for the details you need... How would i do this in
VB 6.0?

Thanks! =o)

Dan.
 
Daniel Bass said:
I want to write a function that deletes files at a given location older than
a set amount of days...

in .Net you can just call GetFileSystemEntries(...) to get the list and
create a FileInfo object for the details you need... How would i do this in
VB 6.0?

This is a .NET newsgroup. Try a VB6 one.
 
This is a .NET newsgroup. Try a VB6 one.

I don't like people putting posts in the wrong news groups either, but :
- there is no vb6 newsgroup. there are generic VB newsgroup's
- these VB newsgroups get one post every 2 hours, not the ideal if you're
impatient like me and need a solution sooner rather than later. ;o)

Later.
Dan.
 
Hello,

Daniel Bass said:
I want to write a function that deletes files at a given
location older than a set amount of days...

in .Net you can just call GetFileSystemEntries(...) to get the
list and create a FileInfo object for the details you need...
How would i do this in VB 6.0?

http://www.mvps.org/btmtz/drvscan

Notice that "microsoft.public.dotnet.languages.vb" is a VB .NET ng. Turn to
one of the microsoft.public.vb.* ngs instead.

Regards,
Herfried K. Wagner
 
See file system operations in:
http://www.thescarms.com/VBasic/VbFileOps.asp

Specifically look at the files collection of the folder object and compare
the lastmodified datetime of each file against a specific value (eg. 7 days
ago). That will then allow you to delete those files.

Chris.

I want to write a function that deletes files at a given location older than
a set amount of days...

in .Net you can just call GetFileSystemEntries(...) to get the list and
create a FileInfo object for the details you need... How would i do this in
VB 6.0?

Thanks! =o)

Dan.
 
microsoft.public.vb.general.discussion does VB6. VB.NET questioners are
asked to look elsewhere.

Kim
 
Back
Top