WDIR - Walk Directory

1 Introduction

   This utility walks through a directory,  executing one or  more
commands on files matching a specified pattern. Its main use is to
provide  "wildcard"  capability to commands which do not  directly
support wildcards,  although it  can  be  quite  useful  in  other
situations as well.

2 Command format

   The format of the WDIR command is:

           WDIR <filespec> "command..." [options]

   The following options are available:

  +r      - Recurse into sub-directories. When this option
            is specified, WDIR will search sub-directories
            for matching files.

  -v      - Inhibit display of commands executed.

  +m      - Use multiple (wildcard) forms of commands.
            This options is used with '+r' to cause a
            single command to be executed once in all
            sub-directories that have matching files.

   The following characters have special significance when used as
part of the commands given to WDIR.

  @   - Substitutes the entire filename and extension
        (without directory) into the command.

  $   - Substitutes the filename only (without directory
        or extension) into the command.

  ^   - Substitutes the directory path (no filename or
        extension into the command.

  !   - Protect the next character in the command from
        the above translations.

   If none of the above characters are found in  a  command,  WDIR
will append the entire directory path,  filename and extension  to
the command.

   NOTE: WDIR accepts and executes multiple commands.

   Examples:

  WDIR *.c "del" +r           <=== One "DEL" for each FILE
  WDIR *.c "del" +r +m        <=== One "DEL" for each DIRECTORY
  WDIR \cmds\*.BAT "copy" "delete"
  (Copy all ".BAT" files from \cmds and then delete them)

