home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
pd1.lzh
/
SYS
/
HELP
/
move.hlp
< prev
next >
Wrap
Text File
|
1990-02-03
|
7KB
|
147 lines
@H
@T0
MOVE - Move files logically within the directory structure
Important: This program is public domain and may be used and distributed
freely as long as the "Distribution_Rules" are met (see
subtopic in this help file).
Syntax: MOVE [<options>] <from> [<to>] [<options>]
Note: The syntax is identical to that of the OS9 copy utility.
Function: Moves files from one directory to another. But rather than
copying the file to the new directory and deleting it in the
original directory, MOVE does *not* copy the file contents, and
simply moves the file logically, thus avoiding disk
fragmentation, even if a lot of files are MOVEd.
Not only files, but also directories can be moved. To avoid
accidental moving of directories when using wildcards, the -d
option must be specified to wildcard-move directories (see
below).
MOVE is useful to tidy up "messy" disks by putting the existing
files where they belong.
Usage: MOVE <file>
Moves the specified file into the current
workingdirectory.
MOVE <file> <new path>
Moves the specified file to the specified new path. If
the filename in <new path> is different from the
original file name, the file will be moved *and*
renamed.
MOVE -w=<dir> <file> ...
Moves all the files specified on the command line to the
directory given in the "-w" option (see below).
Caution: NEVER kill a working MOVE process, because incomplete operation
of MOVE may cause invalid disk structure. See help topics "Move
Troubleshooting" and "Move Notes".
@D1
Options : 2
Examples : 3
Troubleshooting : 4
Notes : 5
Distribution_Rules : 6
@T2
-? Show short help text.
-d Move subdirectories too (not only files, which is
the default case). This option must be specified
when moving directories with the "-w" wildcard
option, to prevent the user from unintentionally
moving directories. If only a single directory is
moved, the "-d" option is not required.
-p Don't print the names of the files and directories
being moved (only if "-w" is used).
-r Rewrite destination. If a file is moved to a
directory where another file with the same name
already exists, the latter will be deleted first.
-w=<destination dir> All files (directories only if "-d" used) specified
on the command line will be moved to the destination
directory. If "-p" is not used, MOVE displays a
message for each file/directory moved.
-x Look in the current execution directory for
files/directories to be moved. Note that "-x"
doesn't affect the destination path, which is always
relative to the current data directory.
@T3
MOVE /dd/mydir/myfile
Moves the file "/dd/mydir/myfile" into the current working
directory.
MOVE /dd/mydir/myfile yourfile
Moves the file "/dd/mydir/myfile" into the current working directory
and renames it to "yourfile"
MOVE /dd/mydir/myfile /dd/yourdir/yourfile
Moves the file "/dd/mydir/myfile" into the directory "/dd/yourdir"
and renames it to "yourfile"
MOVE /dd/mydir/* -w=/dd/yourdir
Moves all files from the directory "/dd/mydir" into the directory
"/dd/yourdir". The filenames will not be changed.
@T4
If the move procedure cannot be completed due to a fatal error or because
MOVE was killed accidentally, the moved file isn't lost normally, but there
might be a duplicate reference to it (i.e the file is in the source directory
as well as in the destination directory). In this case, first copy the file
to another disk, then delete the original file in BOTH source and destination
directories. Then copy the file back from the disk you saved it on.
If MOVE gets killed while moving a directory, basically the same procedure
applies: Copy (or move) all the files *contained* in the diectory somewhere
else. Then deldir the directory in both source and destination directories.
Now you can makdir a new directory and copy (or move) the original contents
back. In addition, check (even if the move seems to be completed) whether the
moved directory's parent link ".." is ok: Enter the moved directory with CHD,
leave it with "CHD .." and then check if you are back in the parent directory
(and not somewhere else). If not, the parent link is wrong (pointing to the
old parent directory). In this case you should move the erroneous directory
somewhere else and then move it back again.
After repairing the disk structure as described above, it is a good idea to
verify the disk using the OS9 DCHECK utility.
@T5
- OS-9 does not provide system level support for moving files. Therefore
MOVE has to open and modify directory files directly. Unlike system
supported directory manipulations (deleting or creating files) which are
indivisible (i.e cannot be interrupted by killing a process) the operation
sequence MOVE performs *can* be aborted by killing the move process, but
it *must not* be aborted to ensure that the disk structure remains intact.
There is no way for move to make the critical sequence of operations
indivisible, so it's up to you to prevent move from being killed while it
is running.
- Because move does a somewhat dangerous task (see note above), it is
programmed to avoid any risk as far as possible. This type of careful
programming is not very fast compared to other risky solutions. So, If you
think move is too slow, rememeber: it's for safety.
@T6
*****************************************************************
* MOVE (c) 1988,89,90 by Lukas Zeller, CH-Maennedorf *
* email: zeller@strati.ethz.ch, zeller@ethz.uucp *
* ..!mcvax!cernvax!chx400!ethz!zeller *
* DECMail: PSI%4991108411::STRATI::ZELLER *
* OS9-BBS: LZELLER *
*****************************************************************
This MOVE utility is public domain and may be used and distributed freely as
long as the following conditions are met:
1. This Program may only be used for peaceful applications. I do NOT ALLOW
using this pogram for anything that has to do with development, testing
or manufacturing of weapons of any type.
2. This text as well as all copyright messages (in the source text, the
code and in this help file) must be retained.
For bug reports, comments and suggestions, please contact the author (see
email paths above). Thank you !