[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: search question



Bill,
As a stopgap, While you're updating, you might want to try running this batch file (save as SESUBD.BAT, or whatever name you choose). The usage is:

SESUBD.BAT [filespec] "search term"
If filespec is omitted, it searches all files (*.*). The results are directed to a file, RESULTS.OUT, which you can open in XyWrite. (It's a raw list of hits, but it's something.) You can run the batch file from the CMline with:

DOS/NV/X/Z /C CMD/C SESUBD.BAT [filespec] "search term"

Hope this helps.

:: SESUBD.DAT -- Search for text in current dir and all subdirectories
@echo off
if %1! == ! goto error
set sehpath=*.*
if not %2! == ! (
 set sehpath=%1
 shift)
echo Searching... (results will be in RESULTS.OUT)
%systemroot%\system32\findstr.exe /ilosc:%1 %sehpath%>results.out
goto end
:error
echo Usage:
echo SESUBD.BAT [filespec] "search term"
echo.
echo Press a key to exit...
pause>nul
:end
set sehpath=
exit
:: end
There's a U2 routine, GREP, that automates this, but I fear that it won't run under your current (vDosXy?) setup.

--
Carl Distefano
cld@xxxxxxxx