Dec 242017
 
Excellent file mover (better than REDirect) & sorted directory lister.
File MVLS.ZIP from The Programmer’s Corner in
Category File Managers
Excellent file mover (better than REDirect) & sorted directory lister.
File Name File Size Zip Size Zip Type
LS.COM 2047 1512 deflated
MV.COM 2749 1704 deflated
MVLS.DOC 3562 1420 deflated

Download File MVLS.ZIP Here

Contents of the MVLS.DOC file


MV - Move Files or Directories
LS - List Files, Total Space

Copyright 1987, 1988
Sydex
153 North Murphy Ave.
Sunnyvale, CA 94086

MV and LS are two simple routines without which life with a computer
would get to be more of a bother than it already is.

LS produces a sorted listing of files. The list is sorted by file
extension first, then by file name. The size of each file is shown
as a decimal number, expressed in kilobytes (1,000 bytes, not 1,024).

Attributes are also shown by means of one-character flags appended
to each file name.

If the file listing is being displayed on the console (rather than
being redirected to a file), LS pauses after filling the display with
24 lines of text. Any keypress will cause LS to display the next
screen.

LS summarizes the total spaces needed for all files at the conclusion
of the display.

LS has the follwing command form:

ls pathname pathname...

"pathname" is a file, directory, or unit specification. If "pathname"
is omitted, the files in the current directory are displayed.


MV moves or renames files and directories.The command form for MV
is:

mv options sources... destination

"option" may be omitted. If present it takes the form of a slash "/"
followed by one or more of the following characters:

o - if a destination file of the same name as the source is present,
overwrite it with the source file.Otherwise, MV prompts for
approval.

k - keep a copy of the old source file. MV usually removes
the old source file after a new copy is made at the destination.

e - under no circumstances allow a destination file of the same
name to be overwritten with a source file.MV usually prompts
for approval before this is done; the "e" option assumes that
the answer to the prompt will be "N" (dont't move the file).

q - always question and prompt for approval when moving any file.
Normally, MV doesn't bother to ask about moves unless a
destination file of the same name already exists.

"sources" may be files or directories; there must be at least one.

"destination" specifies a directory to which the soruces are to be moved.

There are a few rules:

(1) If MV is used to move files from one disk unit to another,
the original source file is left after the move.

(2) If there is exactly one source name and it is the name of
a directory and the destination name is not the name of an
existing file or directory, MV assumes that the source directory
is to be renamed to the destination name.

(3) A "many-to-one" move is disallowed by MV. In other words,
you can't move 10 files to one file name!

Some examples of MV commands:

mv thisfile thatfile

Renames "thisfile" to "thatfile". "thisfile" no longer
exists at the conclusion of the move.

mv /k thisfile thatfile

Copies "thisfile" to "thatfile". "thisfile" remains at
the conclusion of the move.

mv *.* \mydir

Moves all files in the current directory to the directory
"mydir". At the conclusion of the move, the current directory
will be empty.

mv \thisdir \thatdir

Renames the directory "\thisdir" to "\thatdir".

mv a:thisfile c:thatfile

Copies "a:thisfile" to "c:thatfile". "a:thisfile" remains at
the conclusion of the move.





 December 24, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)