home *** CD-ROM | disk | FTP | other *** search
-
- MOV.EXE
- OS/2 version 1.2 (c)1993 Hearty Mosquito SoftWare
-
- Hearty Mosquito SoftWare is not responsible for anything.
- Use at your own risk.
-
- If you like and use this program, send $5 for encouragement to:
-
- Hearty Mosquito SoftWare
- 4216 29th Ave. S.
- Minneapolis, MN 55406
-
- -------------------------------------------------------------------------------
- MOV moves files from one directory to another, and across drives.
- Not the smallest. Probably not the fastest either, but faster than any of
- the other file-move programs I've downloaded.
-
- Before writing this program I had used a program called MV.EXE, written by
- Bryan Higgins( 1802 Channing Way, Berkeley, CA 94703-1725), a great program
- that worked well for years. The problem was that when told to move files
- to another drive, it tried to spawn another program called CP.EXE and CP.EXE
- wasn't included with the MV program. In setting out to write my own CP.EXE
- program to compliment MV.EXE, I found that moving files around on the SAME
- drive was trivial in comparison to moving them to OTHER drives, so I just
- added the same-drive capability to MOV and said goodby to MV.
-
- ----------------------------------------------------------------------------
- MOV version 1.2 (c)1993 Hearty Mosquito SoftWare
-
- Syntax: MOV [-!] [inFILESPEC] [outDIRECTORY]
-
- inFILESPEC: Existing files to be moved. May be a single file or wildcards,
- can contain drive spec or parent directory names.
-
- outDIRECTORY: Destination directory name. If the directory does not already
- exist, the directory will only be created if a backslash \
- ends the parameter.
-
- -!: Forces overwriting of existing files.
- -----------------------------------------------------------------------------
- Example 1:
-
- MOV D:\SOURCE\*.FOO D:\DEST
- moves files from one directory to another on the same drive. If a
- file being moved already exists in the destination directory, you
- will be prompted for instructions on whether to overwrite the file,
- skip the file, overwrite the files and all others, or skip all the
- files.
-
- An overwrite prompt looks like this:
-
- "D:\SOURCE\name.foo" already exists. Overwrite it? [ ! <esc> y N ]
-
- OVERWRITE this and ALL remaining. ────────────┘ │ │ │
- SKIP this file and ALL remaining. ────────────────┘ │ │
- OVERWRITE this file and continue. ────────────────────┘ │
- SKIP THIS file and continue. ──────────────────────┘
- -----------------------------------------------------------------------------
- Example 2:
- MOV -! D:\SOURCE\*.FOO C:\DEST
- moves files from one drive to another. If the files already exist in
- the destination directory, they will be overwritten. If the
- destination directory does not exist, it will NOT be created.
- See the next example for that.
- -----------------------------------------------------------------------------
- Example 3:
- MOV -! D:\SOURCE\*.FOO C:\DEST\
- moves files from one drive to another. If the files already exist in
- the destination directory, they will be overwritten. If the
- destination directory does not exist, it WILL be created, the
- backslash character \ at the end of the destination ensures that.
- -----------------------------------------------------------------------------
- Some additional notes:
-
- Limits:
- There is currently a limit of 500 files per operation. Attempts to
- move more than 500 files will cause MOV to exit without moving ANY
- files.
-
- READ-ONLY files:
- When moving READ-ONLY files ACROSS drives, the files will only be
- copied, not moved. The source files will not be deleted.
-
- Read-only files can be moved to another directory on on the
- SAME DRIVE and they will retain their read-only status.
-
- When MOV moves a file, it first changes the source file to READ-ONLY,
- to prevent someone from using the same directory for input and
- output.
- For example: MOV D:\TEMP\filename.exe d:\TEMP
- would trash the file when the output file was opened for writing.
- Before exiting, MOV changes the file back to it's READ-WRITE state.
-
- What doesn't MOV do?
-
- MOV will only move existing files to a new directory. It will not
- rename them at the same time. DOS includes a handy command called
- "rename" that works well if you need to rename files.
-
-
- Batch files:
- MOV is ideal for use in batch files and will exit with the following
- errorlevels:
-
- 1 Syntax error.
- 2 Attempt to move more than 500 files.
- 3 Input file/directory not found.
- 4 Output spec is not a directory.
- 5 Attempt to copy over itself.
- 7 Error opening input file for reading.
- 8 Error opening output file for writing.
- 9 Failed to copy across drive: disk full?
- 10 OK was given to overwrite existing files.
- 11 ESC key was pressed, quit.
- 100 Failed to create new directory.
-
-
-
-
-