home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
DEMO510.ZIP
/
SLDIR3.INS
/
SLDIR.DOC
next >
Wrap
Text File
|
1999-01-25
|
7KB
|
168 lines
SLDIR -- Searchlight BBS File Directory Lister
Version 4.0, May 1994
Updates
Version 3.5 includes the following new features:
o Automatic support for Searchlight 3.5 long file descriptions
o New '-S' switch to display short descriptions only
o New '-D' switch to obtain a list of directories rather than files
o New '#attrib' switch to specify security attributes to be excluded
o List summary showing number of files, directories & kilobytes
Version 3.0 (March 1993) is a recompilation for distribution with
Searchlight 3.0. No functional changes are added to the program.
Version 2.15A (June 1991) adds indirect file list processing (@list)
to the include and exclude command line parameters. For example, to obtain
a list of files in directories which are specified in a text file called
MAIN.DIR, give this command:
SLDIR /@MAIN.DIR
If the indirect file is not in the current directory, give its full path.
Description
This program reads one or more Searchlight BBS file directories and
prints an alphabetical list of the files to the standard output. Command
line options can be used to specify the directories to list, or specify
search strings. The result can be viewed on the screen, redirected to a
text file or the printer, or piped into another process.
Syntax
The syntax for running SLDIR is as follows:
SLDIR [access] [#attrib] [=string] [/dir] [-dir] [options]
<or> SLDIR [/@list] [-@list]
All parameters are optional. If no parameters are given, the file
FILEDEF.SL2 is opened, and all directories contained within it are
displayed.
If [access] is included, it should be a number from 0 to 255 specifying
that only directories with an access level less than or equal to the
specified number will be printed. For example, the command
> SLDIR 100
will omit any directories with access levels of 101 or greater from the
final list.
If [#attrib] is included, where 'attrib' is a list of security attributes
from A to X, then any directories which have all the security attributes
listed will be excluded from the listing. For example, the command
> SLDIR #AFG
will omit from the listing any file directories which contain security
attributes A, F and G.
The [=string] option, if included, specifies a search string. Only files
which contain the search string in their filename or description are
printed. The search is case-insensitive. Example: use the following
command to list all files on your system with the word "Searchlight" in
their description:
> SLDIR =SEARCHLIGHT
The [/dir] option, where "dir" is the name of a directory, indicates that
ONLY the specified directory will be used in the listing. You can provide
multiple /dir arguments to list several directories. For example, to get a
quick look at your "UPLOADS" and "UTILS" directories from the command line,
you might type
> SLDIR /UPLOADS /UTILS
If [-dir] is given, then the program will display all directories
EXCEPT the specified ones in the listing. For example, you want to list
your files, but omit the "PRIVATE" and "MAIL" directories from the list;
type
> SLDIR -PRIVATE -MAIL
The [/@list] and [-@list] options allow you to specify an external list
of directories to include or exclude. The list is stored in the text file
specified (for example, if the text file is MAIN.DIR, specify /@MAIN.DIR
or -@MAIN.DIR). The file should contain an ASCII list of directory names,
one per line. Your DIR files used to specify private directory lists for
subboards can be used as-is with SLDIR.
If an access level parameter is used together with a "/" or "-"
parameter, the options will work together; only those directories which
meet the criteria of both parameters will be displayed. "/" and "-" type
parameters should not be used together on the same command line.
Options -S may be included on any command line; if included, it specifies
that only short single-line file descriptions should be included in the
list (by default, the entire long description is included). For example,
> SLDIR /PRIVATE -S
lists the contents of the specified directory, with only short descriptions.
Finally, SLDIR includes a command which simply lists the available
directories instead of the files in each directory. To get a list of
directories, enter:
> SLDIR -D
The list is formatted in a similar way as is presented in Searchlight BBS
(directory list command) and includes file totals for each directory.
Totals
SLDIR displays a summary at the end of each listing, such as this one:
Totals: Directories Files Kilobytes
6 192 18120
The summary shows the number of directories, files and kilobytes processed.
Note that if command line switches are used to limit the number of
directories listed, or if a search string is used, the totals reflect only
the directories and files actually listed.
Useage
The primary use for SLDIR will be to generate text files containing
the directory listings of a system. Since SLDIR writes to standard
output, you can use the ">" redirection symbol to send your file list to
a file; for example, SLDIR 10 >ALLFILES.TXT. Using a batch file, you can
automate the process of generating a list, ARChiving it if desired, and
moving it to an upload/download directory for access by users. Put the
whole process onto your system as a nightly event, and your directory
file will be updated daily, automatically.
SLDIR checks for a file called SLDIR.TXT in the default directory when
it runs. If SLDIR.TXT exists, the program reads it and echos the text to
standard output before the file listing. Thus, you can place a "header"
on your file list by placing your header text in a file called SLDIR.TXT
and making sure that file is in the current directory when you run SLDIR.
There should be many other uses for SLDIR: besides giving fast,
convenient lists and searches of your BBS file directories from the
command line, SLDIR's output can be piped to or read by other programs
which need to read your directory list, without having to open and read
the binary ".SL2" files on your disk.
Copyright
This program is (c) Copyright 1994 Searchlight Software. You may use
this program for free if you are a registered owner of any version of
Searchlight BBS.
F. LaRosa 3/28/91
Update 9/12/93
------------------------------------------------------------------------