1
I recently did a data recovery from a hard drive, but the folder where the files are, is separated by subfolders with the name of each extension (eg: jpg, gif...), and each subfolder contains other subfolders separating the files into "small" quantities (e.g.: png[11001-12000]).
I wanted to build a powershell script so that I could only copy files larger than 100 KB, for example, to another folder. Doing some research, I found a script that does something similar
foreach($file in (Get-Item C:\Users\MEU_USUÁRIO\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*))
{
if ((Get-Item $file).length -lt 100kb) { continue }
Copy-Item $file.FullName "C:\Users\MEU_USUÁRIO\Pictures\PASTA_QUALQUER\$($file.Name).jpg";
}
He copies those images from windows Potlight to be able to put the background, but does not come close to what you need precisely by not browsing the subfolders and such. I have no knowledge of powershell, and I need your help to solve this little problem, and break learn a little bit.