Diretório de amostra antes
> gci
Verzeichnis: A:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2018-05-16 16:02 14 GOPR0150.MP4
-a---- 2018-05-16 16:10 14 GOPR0151.MP4
-a---- 2018-05-17 01:25 14 GOPR0152.MP4
-a---- 2018-05-17 01:32 14 GOPR0153.MP4
-a---- 2018-05-17 01:32 14 GOPR0154.MP4
executando este pequeno script do PowerShell
## Q:\Test18\SU_1355955.ps
ForEach($File in (Get-ChildItem '.\GOPR*.mp4')){
$DestFolder = Join-Path $File.DirectoryName $File.LastWriteTime.ToString('yyyy-MM-dd')
if (!(Test-Path $DestFolder)){MD $DestFolder|Out-Null}
$File | Move-Item -Destination $DestFolder
}
> gci -recurse -file
Verzeichnis: A:18-05-16
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2018-05-16 16:02 14 GOPR0150.MP4
-a---- 2018-05-16 16:10 14 GOPR0151.MP4
Verzeichnis: A:18-05-17
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2018-05-17 01:25 14 GOPR0152.MP4
-a---- 2018-05-17 01:32 14 GOPR0153.MP4
-a---- 2018-05-17 01:32 14 GOPR0154.MP4
Editar: dependendo do formato de data local, talvez seja necessário
mude para .ToString('yyyy\-MM\-dd')