script as scheduled task that would delete files using Shift+Delet

Discussion in 'Scripting' started by D''Animal, Aug 25, 2005.

  1. D''Animal

    D''Animal Guest

    Can you please tell me how could I create a script that will be executed as
    scheduled task that will go to folder c:\YYY and remove all the files that
    are older than lets say 30 days(using Shift+Delete). Script that will also
    allow me to specify what files to remove whether by file ext. and/ or by the
    way files are named.


    D''Animal, Aug 25, 2005
    1. Advertisements

  2. Hi,
    you can check this example using forfiles:

    Best greetings from Germany
    Olaf Engelke [MVP Windows Server], Aug 25, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.