cpoliwoda / delete-older-subfolders

delete all subSubFolders which are not the newest one with names like 2019-04-17-230015

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

delete-older-subfolders

delete all subSubFolders which are not the newest one with names like 2019-04-17-230015

with the tool PS2EXE-GUI it is possible to make the PS1 script an executibale

info: without parameter starts a test run which shows the folder that could be deleted with parameter "yes" deleted the found subfolders

execute in PS1 shell with deleting parameter: .\delete-older-subfolders.exe yes

execute in windows CMD with deleting parameter: delete-older-subfolders.exe yes

About

delete all subSubFolders which are not the newest one with names like 2019-04-17-230015

License:MIT License


Languages

Language:PowerShell 100.0%