Results 1 to 2 of 2

Thread: Delete files older then 30 days

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    7

    Delete files older then 30 days

    COuld anybody just give me a hint what would be an optimal solution to delete from VB all files in a folder that older then 30 days?
    Thanks,

    Yuri

  2. #2
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Talking

    try setting a variable to the DateAdd function.

    Code:
    strPrevDte = DateAdd("m", -1, strDat)

Posting Permissions

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



Click Here to Expand Forum to Full Width