powershell is still built on crap
I had it randomly throwing exceptions the other day that a path was too long
(it was only about 300 characters...)
I had it randomly throwing exceptions the other day that a path was too long
(it was only about 300 characters...)
* for %%a in ("*.mp4") do ffmpeg -i "%%a" -vcodec libx265 -crf 26 -tune animation "%%~na.mkv"
gci -filter "*.mp4" | foreach { ffmpeg -i $_ -vcodec libx265 -crf 26 -tune animation ($_ -replace '.mp4','.mkv') }
Files with spaces just work.The user-mode stuff is kind of a mess. The kernel-mode stuff is comparatively orthogonal.
[1]: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/...
[2]: https://learn.microsoft.com/en-us/windows/win32/fileio/namin...