Quantcast
Channel: Active questions tagged powershell-3.0 - Stack Overflow
Viewing all articles
Browse latest Browse all 123

How to loop through all video files (kind:video) regardless of what extension those files(could be .mkv / .mp4 / .mov etc.) have?

$
0
0

So I know that by using this command we can loop through all the MKV / MP4 files in the current folder. But I don't want to have to Google and find out what all possible file-types or extensions the genuine Video files could have like .webm, .mkv, .mp4, .mov etc.

Get-ChildItem -Filter *.mkv | Foreach { $_ }

I want to loop through all those regardless of the file-types or extensions, as long their kind is Video file, by that I mean if you remember Windows folder search there's a parameter says kind:video that lists out all videos without getting into the file extension stuff.

How can I do that with Powershell script ??


Viewing all articles
Browse latest Browse all 123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>