none
Check directories and subdirectories and if a directory contains some files delete the oldest and keep the most updated RRS feed

  • General discussion

  • Hello and greetings to the whole community.

    I'm looking for ways to create a script in powershell that checks directories and subdirectories of a folder, if a directory contains 2 files or more then delete the oldest one and keep the most updated file.

    I would appreciate the support that I can provide.

    Best regards.
    Thursday, September 28, 2017 4:08 PM

All replies