Convert flac to mp3 (with the mp3-file in the subdir “mp3”):
$ Get-ChildItem *.flac | %{ ffmpeg.exe -i $_ -codec:a libmp3lame -qscale:a 2 ("mp3\{0}.mp3" -f $_.BaseName) }
Convert flac to mp3 (with the mp3-file in the subdir “mp3”):
$ Get-ChildItem *.flac | %{ ffmpeg.exe -i $_ -codec:a libmp3lame -qscale:a 2 ("mp3\{0}.mp3" -f $_.BaseName) }
Have you ever tried mass renaming files with square bracket in the path? Then I’m pretty sure you failed, because you can’t escape them easily. You have to do it manually by setting up temporary variables and replace ‘[]’ by ‘“[“]’. It’s a nightmare. Find a box with a bash shell or install cygwin. Then simply do this:
$ for i in * ; do mv "$i" "newname $i" ; done
instead of this shit! That makes PowerShell almost useless for file operations 🙁