home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 164_01 / mv.doc < prev    next >
Text File  |  1984-09-03  |  1KB  |  39 lines

  1.  
  2.  
  3.        MV        UNIX like Utilities    for MS-DOS 2.0       Page-  1
  4.  
  5.  
  6.  
  7.  
  8.        MV ---
  9.  
  10.  
  11.        The MV command is used to move file(s).    The syntax for MV is:
  12.  
  13.        MV <file1> <file2 or directory>
  14.  
  15.        If  the    second parameter is <file2>,  then MV moves  file1  into
  16.        file2  and  deletes  file1 (if file1 and    file2 are  on  the  same
  17.        drive,  then file1 is renamed as    file2).     If the    second parameter
  18.        is a directory,    then file1 is moved into that directory, and the
  19.        original    file1 is deleted.   The    first parameter    may be an MS-DOS
  20.        wild-card specification.     In this case, all files matched will be
  21.        moved (copied and deleted) into the directory specified.
  22.  
  23.        MV  will     never move a file onto    itself--an  error  message  will
  24.        occur and the file will not be deleted.     Also, do not MV a wild-
  25.        carded  file1 onto a file2.   In    this case,  only the first  file
  26.        will be moved and an error message will occur.
  27.  
  28.        Examples:
  29.  
  30.        MV a:/pmate.exe b:/bin
  31.         moves the pmate program to the binary directory of b:
  32.  
  33.        MV *.exe    b:/bin
  34.         moves all .EXE files to the    binary directory of b:
  35.  
  36.        MV memo.mem sept28.mem
  37.         renames the    file memo.mem as sept28.mem
  38.  
  39.