Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Delete multiple files in folder by date

Delete multiple files in folder by date

Scheduled Pinned Locked Moved Visual Basic
tutorialtoolsquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Taen_Karth
    wrote on last edited by
    #1

    I am looking to accomplish the following task: Every 24 hours I would like something to delete all files in a specified folder older than, for example, 7 days with no user interaction. I was thinking of writing it as a script or a service or a small app...what would you recommend as a god solution for accomplishing this? I am leaning towards service but not sure how to create one...hehe

    Thanks, Taen Karth

    G 1 Reply Last reply
    0
    • T Taen_Karth

      I am looking to accomplish the following task: Every 24 hours I would like something to delete all files in a specified folder older than, for example, 7 days with no user interaction. I was thinking of writing it as a script or a service or a small app...what would you recommend as a god solution for accomplishing this? I am leaning towards service but not sure how to create one...hehe

      Thanks, Taen Karth

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      I would recommend a script or a small application, as you run it so seldom. There is no reason to clog the memory with a service that is used 0.01% of the time.

      --- b { font-weight: normal; }

      T 1 Reply Last reply
      0
      • G Guffa

        I would recommend a script or a small application, as you run it so seldom. There is no reason to clog the memory with a service that is used 0.01% of the time.

        --- b { font-weight: normal; }

        T Offline
        T Offline
        Taen_Karth
        wrote on last edited by
        #3

        Should i use WSH, WMI, BAT? Any recommendations there?

        Thanks, Taen Karth

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups