Hacker News new | ask | show | jobs
by ygra 3755 days ago

    for /r "C:\some path" %F in (*.exe) do process "%F"
forfiles also exists, which works similar to find regarding passing the list of files to another command.
1 comments

ls -Recurse -Include "*exe" $PATH | % { something $_}
Use -Filter instead of -Include unless you need fancy wildcards. It's much faster because it gets passed to the FileSystem provider and filtering is applied at that level already.