home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 49 / bbd49.zip / MOVE.TXT < prev    next >
Text File  |  1990-09-18  |  3KB  |  62 lines

  1. |A╔══════════╦════════════════════════════════════════════════════════╦══════════╗
  2. |A║ ^0Helpware |A║                         ^1 Move |A                         ║^0 Helpware|A ║ 
  3. |A╚══════════╩════════════════════════════════════════════════════════╩══════════╝            
  4. ^Cby
  5. ^CHubert C. Borrmann
  6.  
  7.        MOVE, the command that DOS forgot.
  8.  
  9.        During the course of a day, we probably move many thousands of bytes 
  10.  from one subdirectory to another.  For this we use the DOS command "COPY" or 
  11.  the superior "XCOPY", but if we don't want to end up having two copies of our 
  12.  data, we then have to delete the source of the copy.  In that case we have 
  13.  moved a lot of bytes unnecessarily, because all we really have to move is the 
  14.  directory entry for that particular file from one directory to another. 
  15.  
  16.       MOVE can be used like any other external DOS command if you place it in 
  17.  the search-path.  A source and destination have to be given on the command 
  18.  line.  If the destination path is given without a filename, then the filename 
  19.  is picked up from the source.  For example:
  20.  
  21.         MOVE \mydir\myfile \yurdir   -- would move the file named "myfile"
  22.                                         from the subdirectory \mydir
  23.                                           to the subdirectory \yurdir
  24.  
  25.       This function has several restrictions:  the source and destination 
  26.  devices have to be the same; and wildcards are not allowed.  The program will 
  27.  NOT overwrite a destination, because (by use of implicit and explicit 
  28.  path\filespecs) both the source and destination could refer to the same file 
  29.  and a deletion would be disastrous.  Otherwise the operation is 
  30.  straightforward. 
  31.  
  32.  Some syntax examples are: 
  33.  
  34.                           MOVE  ...without any parameters will display an
  35.                                    introduction and syntax screen.
  36.  
  37.             MOVE fspec1 fspec2  ...will rename fspec1 in the default directory
  38.                                    to fspec2.
  39.  
  40.       MOVE fspec1 \dir1\fspec1  ...will move fspec1 from the default directory 
  41.                                    to \dir1 as fspec1.
  42.  
  43.       MOVE \dir1\fspec1 \dir2\  ...will move fspec1 from \dir1 to \dir2 using
  44.                                    the filename fspec1 from the source.
  45.  
  46.  MOVE \dir1\fspec1 \dir2\fspec2 ...moves fspec1 from \dir1 to \dir2 as fspec2.
  47.  
  48.  The program checks for several error conditions and displays an appropriate
  49.  error message. A successful completion is also indicated.  
  50.  
  51.  After you have used MOVE for just a few days, you will wonder how you ever got 
  52.  along without this command. 
  53.  
  54.  
  55. ^COutside BBD
  56.  
  57.     To run this program outside ^1Big Blue Disk^0, type: ^1MOVE^0.
  58.  
  59.  DISK FILES THIS PROGRAM USES:
  60. ^FMOVE.COM
  61.  
  62.