I have a bunch of *.FLAC files in different subfolders, which I want to turn into zero byte files, for database use only. I have the following code, but it makes all files to zero bytes. I don‘t know, how to fit the code. Maybe you can help? Thanks!
$Path='G:\Music\'
$Files=Get-ChildItem -Path $Path -File -Recurse | Where-Object {($_.Length) -gt 0}
ForEach ($File in $Files) { New-Item$File.FullName -Force -Value '' }