home *** CD-ROM | disk | FTP | other *** search
- WMCP
- ────
-
- WAVmaker CoPy.
-
- Like WMRM, WMCP would be a BAT file if only DOS offered a half-decent script
- language! It works as follows:
-
- (1) If called with less than two parameters, it terminates immediately.
-
- (2) If called with two parameters, it executes a DOS COPY command with the
- first parameter for the source filename and the second parameter for the
- destination filename. If the second parameter ends with a backslash (\),
- denoting a directory, the backslash is removed. The command processor is
- located using the COMSPEC environment variable (COPY being an internal
- DOS command).
-
- (3) Otherwise, if either source or destination do not end with a filename
- extension (a period followed by up to three characters) and do not end
- with a backslash, they are concatenated with the THIRD parameter, with a
- period sandwiched between them, whereafter things go as in (2).
-
- Mode (3) allows a default source file extension to be specified.
-