home *** CD-ROM | disk | FTP | other *** search
-
- // example: search .INI files
-
-
- set searchString equal to (arg 1)
-
- // you may need to change the "c:\windows" in the
- // next line :-
- for each file "*.INI" in "c:\windows"
-
- status ("Processing " afile " ..")
- input afile
- set section equal to ""
- do while (someLeft input)
- read
- if (line matches "[~(section)]")
- //
- elseif (line contains searchString)
- write ((fileOf afile) " [" section "] " line)
- endif
- loop
-
- // comment out the next line to make the program run faster
- refresh
-
- next
-