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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch delete files based on date (created) range???

Status
Not open for further replies.

patrickdrd

Programmer
Joined
Nov 21, 2003
Messages
149
Location
GR
Hi everyone!

Does anyone know of a way to delete files on a folder with date (CREATED) criterion?
I want to delete some files which were created until 6 months from now and backwards (older than x days is not good for me).

Thanks in advance!
 
You should be able to use VB and the File / Folder / FileSystemObject to accomplish this; I'm assuming you know VB / VBA from your posting history.

HTT

TazUk

[pc] Blue-screening PCs since 1998
 
It must be possible with Windows Scripting Host, can someone provide me with a link?

Or give me some basic commands to begin with this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top