F5F Stay Refreshed Software Operating Systems Check if the file manager supports sorting by weekday.

Check if the file manager supports sorting by weekday.

Check if the file manager supports sorting by weekday.

C
Cyanstrophic
Senior Member
668
10-11-2023, 05:59 AM
#1
I'm sorry to hear you're having trouble. It sounds like you need a method to filter files by weekend dates. You mentioned using file explorer's advanced search and found a workaround, but it didn't work for you. You're wondering if there are other reliable tools available to accomplish this task.
C
Cyanstrophic
10-11-2023, 05:59 AM #1

I'm sorry to hear you're having trouble. It sounds like you need a method to filter files by weekend dates. You mentioned using file explorer's advanced search and found a workaround, but it didn't work for you. You're wondering if there are other reliable tools available to accomplish this task.

O
Oliy_
Junior Member
16
10-11-2023, 02:59 PM
#2
Create a basic PowerShell script that automates a task for you.
O
Oliy_
10-11-2023, 02:59 PM #2

Create a basic PowerShell script that automates a task for you.

J
JuliBr0
Senior Member
495
10-11-2023, 04:59 PM
#3
Support this idea, PowerShell is the quickest method. @No sleep Neftali Enter folder to sort $dir = Read-Host "Enter folder to sort" $dest = Read-Host "Enter folder to move unwanted files to" $ItemsToRemove = Get-ChildItem $dir -Force -Recurse -ErrorAction Ignore | Where-Object {($_.CreationTime.DayOfWeek -eq "Saturday") -or ($_.CreationTime.DayOfWeek -eq "Sunday"))} | Move-Item -Destination $dest -force "`n" Write-Host "Items moved: `n" $ItemsToRemove.Name "`n" If you wish to delete instead of relocate, change line 5 to this: $ItemsToRemove | Remove-Item -Recurse -Force EDIT: Added a list of items moved Removed on Saturday and Sunday.ps1
J
JuliBr0
10-11-2023, 04:59 PM #3

Support this idea, PowerShell is the quickest method. @No sleep Neftali Enter folder to sort $dir = Read-Host "Enter folder to sort" $dest = Read-Host "Enter folder to move unwanted files to" $ItemsToRemove = Get-ChildItem $dir -Force -Recurse -ErrorAction Ignore | Where-Object {($_.CreationTime.DayOfWeek -eq "Saturday") -or ($_.CreationTime.DayOfWeek -eq "Sunday"))} | Move-Item -Destination $dest -force "`n" Write-Host "Items moved: `n" $ItemsToRemove.Name "`n" If you wish to delete instead of relocate, change line 5 to this: $ItemsToRemove | Remove-Item -Recurse -Force EDIT: Added a list of items moved Removed on Saturday and Sunday.ps1