I have a directory full of powerpoint presentations(pptx). I'm trying to find the presentations that have the word "December" in them. In my Mac I could use grep, but in Windows I've been trying to use Powershell and the command prompt and it is not working.
I tried searching other posts, but what I found were things like this" other post
I tried using findstr /s /i /m "\<december.*" *.*
on the command prompt, but it only returned one .doc and none of the pptx files. I know I have some pptx files with the word "december" in them.
I also tried the following in Powershell:
Location = "C:users\mary\desktop
SearchStr = "december"
Sel = Select-String -pattern SearchStr -path Location
If (Sel -eq null)
{
write-host "Location does not contain SearchStr
}
Else
{
write-host "Found 'n Sel"
}
Write-host "end"
And I get that the file cannot be read. I want it to look at the directory.
Any help would be much appreciated.