Search files recursively using PowerShell or the old good
dir command line.
To search using PowerShell:
gci d:\ -recurse | where-object {$_.name -like
"g*.txt" }
GCI – a short form for Get-ChildItem
Recurse – is to search recursively (folder and sub-folders)
G*.txt - * tells the PowerShell to search any document that
start with g and don’t care anything that follows it
To do it using the old way via command line, open command prompt and type:
Dir /s d:\ g*.txt
To save the search output just use the “>” redirect
operator.
Dir /s d:\ g*.txt > d:\G_filenames.txt
/s - parameter to search recursively (folder and sub-folders)
The search result will be written to G_filenames.txt
In PowerShell to save the search result type:
gci d:\ -recurse | where-object {$_.name -like
"g*.txt" } | out-file d:\gxfiles.txt
If you still want the very conventional way of searching.
Minimize all windows folders by pressing "windows key" + "d", win d (press both keys at the same time).
Then press "F3" on the keyboard, this will open the search window and type the input to begin the search.
Cheers! Till next time..
================================
Free Android Apps:
Click on links below to find out more:
Catholic Rosary Guide for Android:
Pray the Rosary every day, countless blessings will be showered upon your life if you recite the Rosary faithfully.
https://play.google.com/store/apps/details?id=com.myrosaryapp
https://play.google.com/store/apps/details?id=com.myrosaryapp
Comments
Post a Comment