home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
jw.zip
/
SS.DOC
< prev
Wrap
Text File
|
1992-04-01
|
6KB
|
115 lines
PROGRAM: SS.COM
PURPOSE: versatile replacment for DIR command of DOS
AUTHOR: Jim Wygant, Feb., 1990
FORMAT: SS [/4opxds?] [file spec] [file spec] ...
[4/1/92 NOTE: Former users of SS, please note that /a and /p have
been eliminated as options and have been set as defaults. Macros
that contain those options will continue to work as before (/a and
/p will be ignored). The /o option has been added to reproduce the
old default of no hidden files, no subdirectory entries. The /c
option reproduces the old default of non-paused display.]
EXAMPLES:
SS [for alpha sorted, 2-col display of current directory]
SS /4oxc [for current directory with options]
SS c:\txt\a*.* d:\util [files from 2 directories, no options]
SS /? [brief explanation of program]
EXPLANATION: SS (for SEARCH & SORT) is a directory program. It defaults to
an alphabetically sorted 2 column display that includes attributes, file
size, and date and time of last change. The default includes hidden files
and subdirectory names; and the display will pause when the screen fills,
recognizing the current display mode (25, 43, or 50 lines). The default file
specification is "*.*", so "SS" by itself produces a list of all files and
subdirectory names in the current directory, sorted by name. Total number of
entries, total bytes for those entries, and total bytes remaining free on
the drive are shown at the end of the listing.
Individual files with a size too big to fit the display have "*" added to
their file length, like 123456*. Those will be files with a length greater
than 9,999,999 bytes in the 2 col. display, or 999,999 bytes in the 4 col.
display. Substitute "00" for the "*" in a 2 col. display, or "000" in a 4
col. display. A message at the end of the display will remind you of the
correct multiple. To avoid confusion, file lengths are always calculated in
bytes, not kilobytes or megabytes.
Attributes are indicated by "rha" for read only, hidden, and archive, if any
of those attributes are set. Attributes not set are indicated by a dash. For
example, "-ha" refers to a file that is NOT read only, that is hidden, and
that has changed since the last backup.
SS defaults to the same file specifications as the DIR command of DOS.
YOU ENTER SS INTERPRETS IT AS
========= =================
SS D: SS D:*.*
SS D:\ SS D:\*.*
SS D:\WP SS D:\WP\*.* (if WP is a directory)
SS D:\WP SS D:\WP (if WP is a file in the root directory)
Options are entered as the first parameter after SS and must be preceded by
the '/' character. The options are:
/4 -- 4 column display;
/o -- omit hidden files and subdirectory entries from display;
/c -- continuous display without pause when screen fills;
/x -- sort files by extension and name;
/d -- sort files by date and time;
/s -- sort files by size;
/? -- give brief explanation of options & file attribute display.
Several options may be combined, as in "SS /4odc." This produces a 4 col.
display of non-hidden files and non-directory entries, sorted by date, and
scrolled continuously (no pause when screen fills). Any invalid characters
in a list of options are ignored. Capital letters may be used instead of
lower case. Including '?' in options will cause any other options to be
ignored. Options may be entered in any sequence. However, if you include
more than one sort (the 'x', 'd', and 's' options), only the sort specified
last will be used.
If no file specification is included after options, the default is "*.*".
Multiple file specifications may be included in one command, separated by a
blank space. Examples:
SS /4o c:\util\*.doc d:\db\*.dbf
| | |
options 1st and 2nd file specs
SS *.doc *.bak *.dbf c:\db\junk*.* d:\lo\*.wk1
| | | | | |
no options 1st 2nd 3rd 4th and 5th file specs
When there are multiple file specifications, total files and bytes for all
file specifications are shown at the end of the display. If there is only
one file specification, those totals would be redundant and are therefore
omitted.
Except when using the "/o" option, which omits subdirectory entries, all
subdirectories are always listed before any files, regardless of what kind
of sort is specified. With a date sort, directories will be arranged in
their proper date order before files are listed in their own date order.
SS can also be used to determine the size of device drivers (which do not
show up in the DOS DIR command). For instance, SS CON or SS PRN or SS AUX
or SS BRNDEV (if you happen to have installed that screen saver) will show
how much RAM space those drivers occupy. Keep in mind, though, that those
are not actual disk files and therefore can not be edited or deleted.
To abort SS while it is running, press ^C (hold down CTRL and press C).
As usual, there are no guarantees of suitability for any task. Use at your
own risk.
-- Jim Wygant, Feb., 1990
(CompuServe #73627,2043)
=========
Updated June, 1991 with addition of size sort and expansion of help screen.
Updated Oct., 1991 by changing pause command from a fixed 24 lines per
screen to automatically recognize and adjust to other screen sizes.
Updated Nov., 1991 so final totals have commas for easier reading; and disk
space available is in bytes instead of kilobytes (bytes / 1024).
Updated April, 1992 by changing default to all files and pause; and by
eliminating system attribute from display to allow more room for long file
lengths.