home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 438 / MOVOS212.ZIP / MOV-OS2.DOC < prev    next >
Encoding:
Text File  |  1993-10-24  |  5.3 KB  |  121 lines

  1.  
  2. MOV.EXE
  3. OS/2 version 1.2         (c)1993 Hearty Mosquito SoftWare
  4.  
  5. Hearty Mosquito SoftWare is not responsible for anything.
  6. Use at your own risk.
  7.  
  8. If you like and use this program, send $5 for encouragement to:
  9.  
  10.        Hearty Mosquito SoftWare
  11.        4216 29th Ave. S.
  12.        Minneapolis, MN 55406
  13.  
  14. -------------------------------------------------------------------------------
  15.     MOV moves files from one directory to another, and across drives.
  16.  Not the smallest. Probably not the fastest either, but faster than any of
  17.  the other file-move programs I've downloaded.
  18.  
  19.  Before writing this program I had used a program called MV.EXE, written by
  20.  Bryan Higgins( 1802 Channing Way, Berkeley, CA 94703-1725), a great program
  21.  that worked well for years. The problem was that when told to move files
  22.  to another drive, it tried to spawn another program called CP.EXE and CP.EXE
  23.  wasn't included with the MV program. In setting out to write my own CP.EXE
  24.  program to compliment MV.EXE, I found that moving files around on the SAME
  25.  drive was trivial in comparison to moving them to OTHER drives, so I just
  26.  added the same-drive capability to MOV and said goodby to MV.
  27.  
  28. ----------------------------------------------------------------------------
  29. MOV   version 1.2         (c)1993 Hearty Mosquito SoftWare
  30.  
  31. Syntax:          MOV [-!] [inFILESPEC]  [outDIRECTORY]
  32.  
  33. inFILESPEC:      Existing files to be moved. May be a single file or wildcards,
  34.                  can contain drive spec or parent directory names.
  35.  
  36. outDIRECTORY:    Destination directory name. If the directory does not already
  37.                  exist, the directory will only be created if a backslash \
  38.                  ends the parameter.
  39.  
  40. -!:              Forces overwriting of existing files.
  41. -----------------------------------------------------------------------------
  42. Example 1:
  43.  
  44.           MOV   D:\SOURCE\*.FOO    D:\DEST
  45.            moves files from one directory to another on the same drive. If a
  46.            file being moved already exists in the destination directory, you
  47.            will be prompted for instructions on whether to overwrite the file,
  48.            skip the file, overwrite the files and all others, or skip all the
  49.            files.
  50.  
  51. An overwrite prompt looks like this:
  52.  
  53. "D:\SOURCE\name.foo" already exists. Overwrite it?    [ ! <esc> y N ]
  54.                                                                
  55.         OVERWRITE this and ALL remaining.   ────────────┘   │   │ │
  56.         SKIP this file and ALL remaining.   ────────────────┘   │ │
  57.         OVERWRITE this file and continue.   ────────────────────┘ │
  58.         SKIP THIS file and continue.        ──────────────────────┘
  59. -----------------------------------------------------------------------------
  60. Example 2:
  61.           MOV -! D:\SOURCE\*.FOO C:\DEST
  62.            moves files from one drive to another. If the files already exist in
  63.            the destination directory, they will be overwritten. If the
  64.            destination directory does not exist, it will NOT be created.
  65.            See the next example for that.
  66. -----------------------------------------------------------------------------
  67. Example 3:
  68.           MOV -! D:\SOURCE\*.FOO C:\DEST\
  69.            moves files from one drive to another. If the files already exist in
  70.            the destination directory, they will be overwritten. If the
  71.            destination directory does not exist, it WILL be created, the
  72.            backslash character \ at the end of the destination ensures that.
  73. -----------------------------------------------------------------------------
  74. Some additional notes:
  75.  
  76. Limits:
  77.           There is currently a limit of 500 files per operation. Attempts to
  78.           move more than 500 files will cause MOV to exit without moving ANY
  79.           files.
  80.  
  81. READ-ONLY files:
  82.           When moving READ-ONLY files ACROSS drives, the files will only be
  83.           copied, not moved. The source files will not be deleted.
  84.  
  85.           Read-only files can be moved to another directory on on the
  86.           SAME DRIVE and they will retain their read-only status.
  87.  
  88.           When MOV moves a file, it first changes the source file to READ-ONLY,
  89.           to prevent someone from using the same directory for input and
  90.           output.
  91.           For example: MOV D:\TEMP\filename.exe d:\TEMP
  92.           would trash the file when the output file was opened for writing.
  93.           Before exiting, MOV changes the file back to it's READ-WRITE state.
  94.  
  95. What doesn't MOV do?
  96.  
  97.           MOV will only move existing files to a new directory. It will not
  98.           rename them at the same time. DOS includes a handy command called
  99.           "rename" that works well if you need to rename files.
  100.  
  101.  
  102. Batch files:
  103.           MOV is ideal for use in batch files and will exit with the following
  104.           errorlevels:
  105.  
  106.           1  Syntax error.
  107.           2  Attempt to move more than 500 files.
  108.           3  Input file/directory not found.
  109.           4  Output spec is not a directory.
  110.           5  Attempt to copy over itself.
  111.           7  Error opening input file for reading.
  112.           8  Error opening output file for writing.
  113.           9  Failed to copy across drive: disk full?
  114.          10  OK was given to overwrite existing files.
  115.          11  ESC key was pressed, quit.
  116.         100  Failed to create new directory.
  117.  
  118.  
  119.  
  120.  
  121.