                    SNR - Search And Replace Utility
                           Version 1.1
          Copyright (c) 1998  Alexander Kresin   All Rights Reserved

    This program is FREEWARE.
    If you have any questions about it,
    email me: alex@belacy.belgorod.su .
    Here are two versions of this program - 16bit (snr16.exe) and
    32bit (snr32.exe).

    All opinions, suggestions are encouraged.

  ------------------------------------------------------------------------


    This is a small command line utility written on C++ for search and
 replace text strings in multiple files and directories.
 The main feature of this program is a possibility to use wildcards
 ( '*' and '?' ) , like file mask, in a search string.
 You only can't place '*' to the end of the search string if you set
 replace mode - this was made for safety.
 Another feature is in 32bit version - long file name support.

 WARNING!
 YOU MUST BE VERY CAREFUL USING THIS PROGRAM, ESPECIALLY WHEN YOU INCLUDE
 WILDCARDS IN SEARCH STRING, BECOUSE ALL SUCH A PROGRAMS HAVE A POTENTIAL
 OF UNRECOVERABLE CHANGES YOUR FILES.

    Syntax:

    snr [-r] file[s] searchstring replacestring [/r] [/c] [/f] [/dnn]

 where
 -r - set replace mode,
      without this command program work in search only mode;

 file[s] - files you need search and replace.
      You can use wildcards here - prc???.prg, *.htm - for example;

 searchstring - the search string.
      Here you also can use wildcards. If your search string include spaces,
      you should quote it;

 replacestring - the string which replacing found strings.
      If it include spaces, you should quote it;

 /r - recurse subdirectories,
      if you'll sign this switch, program will do it's work in all
      subdirectories;

 /c - Case sensitive search;

 /lf - Full log,
      if you'll sign this switch, all scanned file names will be included
      in log file, if no - only those, where searchstring was found.

 /ln - no log - log file doesn't creates.

 /a  - no prompt,
      this switch prevent appearance of prompts "Replace this occurence ?",
      all replaces will be made without prompt.

 /dnn - setting number of symbols that wildcard '*' can skip. Default: 10.
      In other words, if you sign, for example, /d3, and your searchstring is
      "p*count", the word "pagecount" will be found, but the word
      "pagescount" - no.


 SNR can work in one of two modes: search mode and replace mode.
 To set replace mode you should sign '-r' as a first parameter.

 Before making a replace, the program show the string to replace and
 ask you:

  Replace this occurence ?(Yes,No,All)

 You should reply 'y','n', or 'a' and press ENTER. If you reply 'a' (All)
 SNR will make all rest replaces automatically, without prompt.

 IF replaces were made, SNR create backup copies of changed files with
 extension "sr0".
 SNR create log file named "searnrep.log".

 WARNING!
 YOU MUST BE VERY CAREFUL USING THIS PROGRAM, ESPECIALLY WHEN YOU INCLUDE
 WILDCARDS IN SEARCH STRING, BECOUSE ALL SUCH A PROGRAMS HAVE A POTENTIAL
 OF UNRECOVERABLE CHANGES YOUR FILES.