home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR4
/
WRISIT32.ZIP
/
README.1ST
< prev
next >
Wrap
Text File
|
1994-01-18
|
16KB
|
315 lines
╔══════════════════════════════════════════════════════════════════════════╗
║ WHERE-IS-IT? ║
║ Ver 3.2 ║
║ ║
║ Fast File Finder Utility ║
║ By Brigham W. Thorp (c) 1994 ║
╚══════════════════════════════════════════════════════════════════════════╝
Welcome to WHERE-IS-IT? ver 3.2. This program was made to make your life
easier. Have you ever wanted to find a file, but didn't know how to use
the cryptic DOS commands? Well, that's one of my reasons for developing this
program. It not only allows you to find files in general, but there are also
many options which allow you to alter the search criteria, which hopefully
will make life easier for you.
This program has been developed in my spare time, while trying to finish
my B.S. in Computer Science. I have spent over 50 hours writing this program
and making changes to it since it was first released in June of 1993.
A lot of people asked me why I was developing a program like this. To
tell you the truth, there are hundreds of programs that find files, and
I'm sure you might have one or two on your computer right now. The reason
for doing this program was to increase my knowledge of PC compatible
file manipulation and programming in general. Unfortunately, no college
that I know of teaches you how to develop practical applications such as
this, so I figured I would do it on my own. Here's to higher education!
This document explains the options and the features of WHERE-IS-IT? I
would kindly ask for you to experiment with this program for 30 days. If
you find it useful, please register the program if you continue to use it.
The file REGISTER.FRM has all the information about the price of registration
and site licenses. I would like to thank you for experimenting with this
version of WHERE-IS-IT?
-----------------------------------------------------------------------------
COMMAND SYNTAX:
-----------------------------------------------------------------------------
WHERE <-Options> [Drive:][\Directory]<filespec or wildcard>... </Options>
The <Drive> is either a specified drive, or it could be left blank to
default to the current disk.
The <Directory> is either none if you want the whole disk to be searched,
or it contains a directory name with the backslash.
The <filespec or wildcard> could be any legal DOS 8-dot-3 filename, or it
could be a wildcard, such as asterisks or question marks. Look in the DOS
manual if you are unfamiliar with wild cards.
This version supports multiple filespecs, so if you wanted to search for
*.doc and *.txt files, you could do something like this:
WHERE <-Options> *.doc c:\temp\*.txt </Options>
This example would find all doc files on the current disk and all txt
files in the directory c:\temp. Note that each filespec can have it's own
drive and directory as well.
The options that alter the search pattern are shown below. Also, a full
description of them can be found later in the document.
-----------------------------------------------------------------------------
OPTIONS:
-----------------------------------------------------------------------------
/A : Search all Hard Drives /K : Check for Compressed Files
/B : Page Break /L : Output to WHERE.LOG File
/C1 : Change to Dir of 1st Match /N : Filenames + Pathnames Only
/CD : Change to Dir of Found File /P : Search Path Environment
/D : Delete Files With Prompt /R : Show Registration Information
/DY : Delete Files Without Prompt /U : Uppercase Display
/F : Include Directories /Z : Search for Set Archive Bit
/I : Ignore Environment Variable
-----------------------------------------------------------------------------
EXAMPLES:
-----------------------------------------------------------------------------
WHERE C:\*.TXT Finds all .TXT on Drive C:
WHERE D:\*.?? Finds all 1 and 2 letter extensions on Drive D:
WHERE C:\DOS\*.EXE Finds all .EXE files in the DOS directory
and it's subdirectories
WHERE *.BAK /D Finds all .BAK files and prompts for deletion
WHERE *.TMP /DY /L Deletes all .TMP files without asking and sends
the output to WHERE.LOG
WHERE WI*.* /F Finds all files + directories starting with WI
WHERE *.* /B /F Search for all files and directories and pause
when the screen is full of files
WHERE *.EXE -K /A Search all hard drives for all .EXE files
compressed with PK-Lite(tm) or LZ-Exe(tm)
WHERE *.DLL /P /D /L Search the PATH for all .DLL files while prompting
for deletion and sending the output to WHERE.LOG
(whew!)
WHERE *.TXT *.DOC -Z Search for all .TXT and all .DOC files on the
current disk that have the archive attribute set
-----------------------------------------------------------------------------
SAMPLE OUTPUT:
Command Line = WHERE C:\DOS\D*.COM
-----------------------------------------------------------------------------
Searching for d*.com in c:\dos\
diskcomp.com 10636 a 11/11/1991 5:00 c:\dos\
diskcopy.com 11879 11/11/1991 5:00 c:\dos\
doskey.com 5883 11/11/1991 5:00 c:\dos\
3 file(s) found occupying 28,398 byte(s)
The first line tells you what the program is searching for. The following
lines are the files that matched the search pattern. If you look at one of
those lines, you will notice the filename, the size, the attributes, the
file date and time, and the path where the file is located. After all of the
files are listed, the total number of files is shown with the total amount
of space used for the found files.
Any time during the listing of the files you can press the ESCape key
to terminate the program.
-----------------------------------------------------------------------------
ENVIRONMENT VARIABLE:
-----------------------------------------------------------------------------
WHERE-IS-IT? supports an environment variable called WHERE. To set the
WHERE environment variable, at the DOS prompt type the following:
SET WHERE=-u
The above example sets as default the option -u. If you notice, there
isn't a space between the name, the equals sign, and the first option.
If you have more than one option you would like stored in this variable,
you must put a space between all of the subsequent options like the example
shown below:
SET WHERE=/u -d /p
The above example will search the path for a filespec that you specify
and will delete the files after asking for your confirmation. Also, the
output will be in upper case for the default.
You can put one of the lines above or one configured to your needs in
your AUTOEXEC.BAT file. This will guarantee that the options you prefer will
always be there when you run WHERE-IS-IT?
It is also possible to override a switch that you have in your environment
variable. For example, if you had the environment variable set like the first
example above: SET WHERE=-u you can override that switch by typing another
-u on the command line. In fact, if you have an odd number of the option on
the command line, the option WILL be performed. If you have and even number,
then the option WILL NOT be performed, because the options cancel each other
out.
In the version 1 series of WHERE-IS-IT?, you were allowed to put a
filespec in the environment variable. This is NO LONGER ALLOWED. Please
remember this when you set your desired environment variable.
-----------------------------------------------------------------------------
DETAILED OPTION HELP:
-----------------------------------------------------------------------------
/A : This option will search all logged hard drives C: through Z: for
a specified filespec. This option is a lot better than DOS since
you can search multiple drives unlike the DIR command.
/B : This option will pause the screen when it's full of files so you
can view the output a screen at a time. It will work no matter
what screen size you are working in (25, 43, or 50 line mode).
/C1 : This option allows you to change to the directory of the first
file to match the filespec or wildcard. After all of the files
matching the search criteria are displayed, the directory will
then be changed. If you use the -f show directories switch, the
directory matching is switched to, not the directory containing
the matched subdirectory.
/CD : This switch allows you to change to the directory of the found
file. Each file that matches the search criteria is shown. A
prompt allows you to change to the directory of the file, continue
searching, or abort the search. Answer 'Y' to change the directory
and halt the program. Answer 'N' to continue the search, or enter
the ESCape key to cancel the operation and end the program without
changing the current directory. If you use the -f show directories
switch, the directory matching is switched to, not the directory
containing the matched subdirectory.
/D : This switch is used to delete the files matching the search
criteria. After the filename and other info is shown, a prompt
asks you if you wish to delete the file. You answer 'Y' for
Yes, 'N' for No or ESCape to quit. If the file is Read Only,
a second prompt will ask you if you are sure. Again, answer 'Y',
'N', or ESCape. If you are performing a deletion, the total number
of files and the number of bytes deleted will be shown at the
end of the listing. By the way, if you are using the /F show
directories option, the directories will be shown, but you won't
be able to delete them.
/DY : This switch is identical to the /D switch except that it doesn't
ask for your confirmation to delete the file. If the file is Read
Only, it will ask you if you are sure, but that is the only time,
so be extremely careful with this switch. The total number of files
deleted and the total size is also shown at the end of the search.
This switch will also show directories that match a filespec, but
will not let you delete them.
/F : This switch is used to display directory names that match the
search criteria. This option is off by default, as the display
can become very cluttered with directory names and files scrolling
down the screen. If you use this with the /D or /DY switch, any
matched directories will be shown, but you won't be able to delete
them.
/I : This switch ignores the settings in the WHERE environment variable.
Instead of having to override every option in the environment
variable with a command line switch, use this option to ignore
the environment variable altogether.
/K : This option will scan for executable files that are compressed with
versions of PK-Lite(tm) and LZ-Exe(tm). These programs compress
executable files so they take less disk space. When I get more
header formats for other compressed file types, I will put them
in as well. Some hack compression removal programs take the header
data out, so until I can figure out how to scan for these types of
files, you won't get accurate results. I removed the SQZ(tm)
checking since this is an archive file, and I just want to stick
to executable file compressors.
/L : The /L switch is used to send the output that you see on the screen
to a log file named WHERE.LOG in the current directory. The exact
same info that is displayed on the screen will go into the log
file instead. If this is an unregistered version, the top of the
file will have 'UNREGISTERED VERSION' written to it.
/N : I put this option here after running a debugging program on this
program. It was spending too much time writing the attributes
and everything, so I made this option to only output the pathname
and filename. It is BLAZINGLY fast. Try it out.
/P : This switch is used to search the Path environment variable. If
the Path is empty, the program will state that and abort the
search. This is a useful command to find out if a filename
that you wish to execute is in your path or not. If used in
conjunction with the /A switch, the /A option takes precedence.
/R : This switch shows the registration screen only. It has my address
in it so you know how to contact me. If this is an unregistered
version, this screen will be displayed after a blank command
line is given, following the options help screen.
/U : This switch displays the filenames and pathnames in upper case.
I changed the output to lower case because people said it was
easier to read. If you like capital names better, use this
switch.
/Z : This option searches for files with the archive bit set. You
can use this option with the /A or /P switch to find these
files on all logged hard drives and the path respectively. You
can also use the /D or /DY switch to delete those found files.
-----------------------------------------------------------------------------
COMING SOON!
-----------------------------------------------------------------------------
------------ Hopefully this should be fairly soon! -----------
- Run a program on all found files. I was hoping to get that into this
version, but I started a co-op job through college and I haven't had
the time to get it in.
- Support HPFS (OS/2) and NTFS (Win NT) with extended filenames as well.
This will take a while to get implemented and will increase the size
of the executable file enormously. I will need OS/2 and Win NT users
to beta test if anyone is interested.
- Will search for the specified filespec inside of ZIP, ARJ, and LHA
archive file formats. This will be a while as well since I don't
have the code for these archive file types.
Tell me what features you are looking for!
-----------------------------------------------------------------------------
REGISTRATION STUFF:
-----------------------------------------------------------------------------
This program is the result of long, hard work of myself, and registration
makes me work even harder. To date, there are over 3000 lines of code in this
version of WHERE-IS-IT. That's pretty big for a full-time college student
who wrote this in his spare time.
This program is copyrighted and reproduction and/or disassembly is a
violation of that copyright. If you register this product, you will receive
the current version on disk and the annoying little delay will go away.
Also, the writing of 'UNREGISTERED VERSION' to the WHERE.LOG file will not
be present.
If you are interested in registering this program, please fill out the
information in the file REGISTER.FRM. This form also has the current prices
for personal and site license registration.
-----------------------------------------------------------------------------
END OF DOCUMENT