home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
On Disk Monthly 65
/
odm65.zip
/
SDIR.TXT
< prev
next >
Wrap
Text File
|
1992-01-15
|
5KB
|
153 lines
SELECTIVE DIR
BANNER COLORS 7 7
SG
sdir static
delayicon
AG
sdir animation
L #1 1 63,-200;63,59 5 3 B
T #2 1 189,67 0
L #3 1 -80,67;40,67 5 3 B
T #4 1 189,67 8 B
T #5 1 200,274 0 B
R #3 1 0
L #3 1 40,67;40,107 4 3 B
R #4 1 0
T #4 1 189,107 3 B
R #3 1 0
L #3 1 40,107;40,187 8 3 B
R #4 1 0
T #4 1 189,187 3 B
Have you ever wished DIR would allow you to list multiple file
types in one directory listing? Wouldn't it be nice if DIR gave
you a size report that was actually useful? The sad truth is
that DIR just isn't all that powerful. That's why we've created
Selective Directory (SDIR). It solves DOS's DIR shortcomings in
one easy-to-use program.
^CMain Features:
Multiple file masks - SDIR allows you to issue multiple file
masks on the command line to access directories of just those
files. All DOS wildcard specifications are supported.
Accurate size reports - By default, SDIR will report how much
space the listed files will require on a fixed disk (hard drive),
a high density disk (1.2MB and 1.44MB) and double density disk
(360k and 720k disks).
Directory recursion - SDIR has the ability to scan all
subdirectories stemming from the current one and deliver total
file and size reports. If you've ever wondered how much hard disk
space Windows(tm) and all its subdirectories take up, SDIR can
tell you.
Help: Command line help is always available by typing SDIR /?.
Automatic video mode detection - SDIR will detect and run in both
25 and 50-line modes.
SDIR is useful in two ways: first, to place different types of
files in one directory listing with one easy command, and second,
to see how much space files in a single directory (or directory
structure) actually occupy on disk. SDIR lists the size reported
by DOS for each file, as well as the actual disk space a file
occupies.
The benefits of the first feature should be obvious. In DOS you
cannot type "DIR *.EXE *.COM *.BAT" to get a list of all
executable files. In DOS you would have to use DIR three times.
With SDIR you would type "SDIR *.EXE *.COM *.BAT" and the file
listing is yours.
The second feature of SDIR requires a little explanation. A DOS
disk is partitioned into sectors; files are stored in these
sectors. When a file is stored in a sector, the entire sector is
used, whether the file fills the sector or not. Disk space is
reduced by the size of the sectors used, NOT by the number of
bytes in the file. The type of disk determines how many bytes
each sector holds. For example, on a hard disk, each sector is
2048 bytes long. A program which is only 40 bytes long would
take up 2048 bytes of disk space, even though DIR will list the
file at 40 bytes!
High density disks have 512 byte sectors. Therefore, that same
40 byte program which took up 2048 bytes on a hard disk, would
only take up 512 on a high density floppy. SDIR reports how much
space all the files listed will take up on three disk types:
Fixed disks (hard drives), double density (360k & 720k) and high
density disks (1.2MB & 1.44MB disks). This is useful if you want
to see if there is enough space on a floppy to hold all of your
files!
^P
^CSyntax:
SDIR [/A] [/ND] [/R] [/DD|/HD|/FD] [/DR] [/W] [/P] [file masks]
A parameter of "/?" will yield a full-screen page of help.
Parameters enlosed in brackets are optional. Three parameters
(/DD, /HD and /FD) are mutually exclusive. Parameters may appear
in any order.
^P
^CParameters:
/A Scan all directories stemming
from this one.
/R Give a size report for each
directory scanned (used with the
/A parameter).
/ND Don't display file listing.
/DD Show how much space files would
occupy on a double density drive.
/HD Show how much space files would
occupy on a high density drive.
/FD Show how much space files would
occupy on a fixed disk (hard
drive).
/DR Total directory report.
/W Wide listing of files.
/P Pause after a full screen.
masks One or more wildcard masks of
files to scan. Separate multiple
masks with a space.
/? Help screen.
^P
^CExamples:
SDIR /A
Gives a file and size report for all files in the current
directory as well as those in any child directories.
SDIR *.EXE *.TXT
Gives a file and size report on all files with the extensions
.EXE and .TXT in the current directory only.
SDIR /p
Gives a file and size report for all files in the current
directory, pausing after each full screen of information.
SDIR C:\ /A *.EXE
Repots on all executable files in every directory on drive C.
^C^BOutside ^UOn Disk Monthly^U^B
To run this program outside ^B^UOn Disk Monthly^U^B, type:
^BSDIR^B.
^BDisk files this program uses:^B
^FSDIR.EXE