home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Big Blue Disk 49
/
bbd49.zip
/
MOVE.TXT
< prev
next >
Wrap
Text File
|
1990-09-18
|
3KB
|
62 lines
|A╔══════════╦════════════════════════════════════════════════════════╦══════════╗
|A║ ^0Helpware |A║ ^1 Move |A ║^0 Helpware|A ║
|A╚══════════╩════════════════════════════════════════════════════════╩══════════╝
^Cby
^CHubert C. Borrmann
MOVE, the command that DOS forgot.
During the course of a day, we probably move many thousands of bytes
from one subdirectory to another. For this we use the DOS command "COPY" or
the superior "XCOPY", but if we don't want to end up having two copies of our
data, we then have to delete the source of the copy. In that case we have
moved a lot of bytes unnecessarily, because all we really have to move is the
directory entry for that particular file from one directory to another.
MOVE can be used like any other external DOS command if you place it in
the search-path. A source and destination have to be given on the command
line. If the destination path is given without a filename, then the filename
is picked up from the source. For example:
MOVE \mydir\myfile \yurdir -- would move the file named "myfile"
from the subdirectory \mydir
to the subdirectory \yurdir
This function has several restrictions: the source and destination
devices have to be the same; and wildcards are not allowed. The program will
NOT overwrite a destination, because (by use of implicit and explicit
path\filespecs) both the source and destination could refer to the same file
and a deletion would be disastrous. Otherwise the operation is
straightforward.
Some syntax examples are:
MOVE ...without any parameters will display an
introduction and syntax screen.
MOVE fspec1 fspec2 ...will rename fspec1 in the default directory
to fspec2.
MOVE fspec1 \dir1\fspec1 ...will move fspec1 from the default directory
to \dir1 as fspec1.
MOVE \dir1\fspec1 \dir2\ ...will move fspec1 from \dir1 to \dir2 using
the filename fspec1 from the source.
MOVE \dir1\fspec1 \dir2\fspec2 ...moves fspec1 from \dir1 to \dir2 as fspec2.
The program checks for several error conditions and displays an appropriate
error message. A successful completion is also indicated.
After you have used MOVE for just a few days, you will wonder how you ever got
along without this command.
^COutside BBD
To run this program outside ^1Big Blue Disk^0, type: ^1MOVE^0.
DISK FILES THIS PROGRAM USES:
^FMOVE.COM