Delete "x" days older files from folder (bonus in the end) | Powershell & Batch-File | Tech Tip
HTML-код
- Опубликовано: 7 фев 2025
- In this video, I will go through the commands and steps to delete the files "x" days older in PowerShell and Batch file. Everytime the script will be triggered, it creates a log file to see which files were deleted.
🔗Links
/ @santhoshbalajiramesh
Sample powershell script: github.com/san...
Sample batch file script: github.com/san...
Sample script for bonus: github.com/san...
Timestamps:
00:00 Introduction
00:08 Using PowerShell
01:36 Using Batch file
02:45 Bonus: Create and Update last modified date using PowerShell