Discussion Locked
Search entire drive using select-string in powershell
0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
HI all using the select-string cmdlet in powershell, I am able to find the path do a file if I'm either in the directory all ready or I specify the entire path to the file using the -Path switch.
Is there a way to get select-string to find the file just by putting in the name of the file?, This without having to specify the whole path?
Any thoughts are appreciated.