Skip to main content

Windows - Find file from command line

·31 words·1 min· loading · loading · ·
windows windows file search
Luke Taylor
Author
Luke Taylor
I like a lot of things

Command Prompt
#

dir <filename> /s /p
/S     include all subfolders.
/P   Pause after each screen of data.

https://ss64.com/nt/dir.html

PowerShell
#

Get-ChildItem -Path V:\Myfolder -Filter CopyForbuild.bat -Recurse -ErrorAction SilentlyContinue -Force

https://blogs.technet.microsoft.com/heyscriptingguy/2016/06/27/use-windows-powershell-to-search-for-files/