How to find text inside a file on a Drive

January 16, 2011 at 06:43:14
Specs: Windows 7, 12GHZ,12GB DDR5
Let say im looking for word Monkey and for all i know it can be stored inside a .cfg file
how do i make it search for that specific word inside files of *.txt *.cfg etc perhaps *.* work i dont know, on all drives or a specific one like D:\

i tried

find /i "Monkey" D:\

and i get some kinda access denied message but im Full Adminstrator...
ived tried

find "Monkey" *.cfg

it works but only current directory.(wich is not what im after)

find /i "Password" D:\*.*

also gives me error message cant access folders etc, and they are not protected by me as i made just a RandomFolderTree for it to scan through find as a test.

hmm anyone?

See More: How to find text inside a file on a Drive

Report •

January 16, 2011 at 08:17:31
Running the prompt as an administrator should fix that error. Right click > Run as Administrator.

FINDSTR /s /i "Monkey" "D:\*.*"

Can I put a question here?

Report •

January 17, 2011 at 00:21:02
@echo off & setLocal EnableDELAYedeXpansion

for /f "tokens=* delims= " %%a in ('dir/b/s d:\*.txt') do (
find "Monkey" < %%a

Life is too important to be taken seriously.


Report •

Related Solutions

Ask Question