home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 11 / PCPP11.iso / utils / frogbit / fb-097.exe / INIFIND.FB < prev    next >
Encoding:
Text File  |  1997-02-04  |  549 b   |  27 lines

  1.  
  2. // example: search .INI files
  3.  
  4.  
  5. set searchString equal to (arg 1)
  6.  
  7. // you may need to change the "c:\windows" in the
  8. // next line :-
  9. for each file "*.INI" in "c:\windows"
  10.  
  11.   status ("Processing " afile " ..")
  12.   input afile
  13.   set section equal to ""
  14.   do while (someLeft input)
  15.     read
  16.     if (line matches "[~(section)]")
  17.       //
  18.     elseif (line contains searchString)
  19.         write ((fileOf afile) " [" section "] " line)
  20.     endif
  21.   loop
  22.  
  23.   // comment out the next line to make the program run faster
  24.   refresh
  25.  
  26. next
  27.