VB6 Directory\File Maintenance
From: John Walker (JohnWalker_at_discussions.microsoft.com)
Date: 12/02/04
- Next message: Mike D Sutton: "Re: Sending a picture to a paint program?"
- Previous message: Marty: "Re: "On error resume next" strange bug"
- Next in thread: Ken Halter: "Re: VB6 Directory\File Maintenance"
- Reply: Ken Halter: "Re: VB6 Directory\File Maintenance"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Dec 2004 11:19:03 -0800
Here's the situation: there's a file on my local machine which gets backed up
every night to the network server with the name datetime.BAK. In order to
prevent these files from taking up too much space, I was going to write a VB6
app which would run once a week and delete all but 3 of the most recent
files. I was experimenting with the FileSystemObject and Files object, and
the DIR function, but I can't figure out how to make sure that the 3 files to
be retained are the most recent. I know how to delete files, but don't know
how to 'order' by date. Does anyone have a suggestion as to how I should go
about this? And if sample code is available, that would be great.
Thanks,
John
- Next message: Mike D Sutton: "Re: Sending a picture to a paint program?"
- Previous message: Marty: "Re: "On error resume next" strange bug"
- Next in thread: Ken Halter: "Re: VB6 Directory\File Maintenance"
- Reply: Ken Halter: "Re: VB6 Directory\File Maintenance"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|