home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / WM10.ZIP / DOC.DAT / wmcp.txt < prev    next >
Encoding:
Text File  |  1995-08-30  |  1023 b   |  24 lines

  1.  WMCP
  2.  ────
  3.  
  4.  WAVmaker CoPy.
  5.  
  6.  Like WMRM, WMCP would be a BAT file if only DOS offered a half-decent script 
  7.  language! It works as follows:
  8.  
  9.  (1) If called with less than two parameters, it terminates immediately.
  10.  
  11.  (2) If called with two parameters, it executes a DOS COPY command with the 
  12.      first parameter for the source filename and the second parameter for the 
  13.      destination filename. If the second parameter ends with a backslash (\),
  14.      denoting a directory, the backslash is removed. The command processor is 
  15.      located using the COMSPEC environment variable (COPY being an internal 
  16.      DOS command). 
  17.  
  18.  (3) Otherwise, if either source or destination do not end with a filename
  19.      extension (a period followed by up to three characters) and do not end 
  20.      with a backslash, they are concatenated with the THIRD parameter, with a 
  21.      period sandwiched between them, whereafter things go as in (2).
  22.  
  23.  Mode (3) allows a default source file extension to be specified.
  24.