home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
191.lha
/
Move_v2.4
/
move.doc
< prev
next >
Wrap
Text File
|
1988-04-28
|
4KB
|
72 lines
MOVE
Format: MOVE <oldfilename> <newfilename>
Purpose: The move command relocates one file or a group of files.
Specification:
Often one finds that a file (or a group of them) is in
the wrong place. This may be the result of downloading files to a buffer
disk from a BBS, for example. Or one may realize that a group of files
just unARCed should really have been in their own subdirectory. (Sound
familiar??)
MOVE addresses this problem by providing a convenient way
to move files from one place to another. The parameter <oldfilename>
serves as a pattern which MOVE uses to find files. If there is no drive
specified in the oldfilename, the current one is used. Wildcards are
supported and either AmigaDOS type or MSDOS type may be used, (but not
both at once). The <newfilename> is used to identify the new path for the
file(s). If the newfilename contains a filename in addition to the path
information it will be removed. MOVE always keeps the original file's
name to prevent disasters like "MOVE DF0:* DF1:File" which would try to
move all files on DF0: to the same single destination file! The real
result of the command "MOVE DF0:* DF1:File" would be that MOVE would
internally change the command to "MOVE DF0:* DF1:" and copy all files on
DF0: to files on DF1: with the same names. It would then remove these
files from DF0:. If you really wanted to move all the files on DF0: to
the SUBDIRECTORY "DF1:File", then just say "MOVE DF0:* DF1:File/".
MOVE will NOT delete the source file if anything went wrong
with making the copy, so it's generally safe to try things out. You can
always MOVE the files back if they get sent to the wrong place.
Note that MOVE will NOT move directories. This is just
too easy a way to get into trouble FAST! I haven't needed this ability
myself, but if this is what you want to do, drop me a note and I may add it
if demand dictates.
Version 2.2 of MOVE is much smarter than the older version.
If you specify the same drive for both source and destination patterns, or
if you don't specify one for either pattern, MOVE will use the ReName
function instead of doing a Copy followed by a Remove. This was an
aesthetic oversight on my part in the previous version! You can tell which
was done by the messages you get. Note that if you only specify a drive on
ONE of the patterns, MOVE will assume that you are talking about TWO
DIFFERENT drives and do a copy/delete. (All of this is a matter of style,
however. MOVE has been and still is a "safety first" program. The new
version is simply much faster when MOVE-ing within the same drive and
doesn't require space for a temporary copy of the files it is moving. The
older version would refuse to move a file if there was not enough room for
a second temp. copy of it. Also, doing a move-by-copy on a single device
tends to increase directory fragmentation. If this makes no sense to you,
relax. It doesn't matter!)
Version 2.3 of MOVE is a small update to the previous
version. It simply catches you if you try to specify the same disk and
directory for both the source and destination of a file. The 2.2 version
would give you ERROR 20's when you tried this.
Version 2.4 of MOVE is the result of the release by Lattice
of patches to their compiler (ver 4.01.b) which fixes the bug in Control-C
detection. Thus, I have been able to re-activeate the Control-C abort
detection in MOVE. (In the past, Control-C crashed the machine due to a
compiler bug!) Sadly, Lattice has as yet not fixed the bug which causes
all directory entries to be returned in lower-case. Sorry 'bout that.
I feel that utility programs should NOT go poking around directly in the
disk's directory sectors in a multitasking machine! You'd be more upset
if MOVE was interrupted in the middle of direct disk I/O, possibly trashing
the disk, than by the case conversion, wouldn't you??
Enjoy! (again!)
Doug Tittle