home *** CD-ROM | disk | FTP | other *** search
-
- VOLUME CHECKER 1.0
-
- BY USING THIS PROGRAM YOU AGREE TO HOLD THE AUTHOR FREE OF ALL
- LIABILITY OF ANY KIND TO THE EXTENT PERMITTED BY LAW. YOU
- ASSUME THE RISK OF ANYTHING THAT HAPPENS. VOLUME CHECKER IS
- SOLD WITHOUT WARRENTY OF ANY KIND, INCLUDING FITNESS FOR A
- PARTICULAR PURPOSE OR MERCHANTABILITY. REMEDIES ARE LIMITED TO
- THE REFUND OF THE REGISTRATION FEE.
-
-
- Volume checker does NOT run under DOS version 2.x
-
- -----------------------------
-
- Super quick lesson:
-
- VC thisdisc a
- VC Label Drive
-
- Returns errorlevel 0 if 'thisdisc' is in A:
-
- -----------------------------
-
-
-
-
-
-
-
-
-
-
-
-
- ------------------------
- CONTENTS
-
- What is it?
- How do I use it?
- Single floppy systems
- Return codes
- Suppress output
- Redirection
- Registration
- Other programs
-
- ------------------------
- WHAT IS IT?
-
- Volume checker is a batch utility that looks at the volume
- label of any drive and compares it to the one entered on the
- command line. It returns errorlevel based on what it finds.
- This allows you to do backups with a batch file that copy the
- contents of particular directories to particular floppies, etc.
-
- I have a lot of batch files to port from my bbs machine to my
- work machine. By using VC I can make sure that the files go on
- the floppies they belong on. Also, I can designate a
- particular floppy for a particular job, and make sure it is not
- inadvertently written to by a batch file.
-
- ------------------------
- HOW DO I USE IT?
-
- The command line for VC is:
-
- VC NAME [drive letter]
-
- The A drive is assumed if no letter is given on the command
- line. The registered version has other options.
-
- ------------------------
- SINGLE FLOPPY SYSTEMS
-
- VC makes the assumption that if you have a single floppy
- system, and the floppy drive is aliased to B:, you just forgot
- it there. If you have one drive and last used it as B:, VC will
- do the assembly language equivolent of A: and press a key to
- make the floppy think of itself as the A drive. This means if
- you call VC first, you will not get stuck at the prompt that
- says 'insert diskette for drive A: and strike any key when ready.'
-
- However, if you _specify_ the B drive, VC will take you at your
- word. So if you have two drives, it will look at the B drive,
- if you have one, and it is aliased as B, it will access it, and
- if it is aliased as A, you will get the prompt. Which won't
- make your day if you are a sysop using VC in your night
- maintenace batch file. Therefore:
-
- Unless you are doing something I never thought of, DO NOT
- specify drive B on a single floppy system.
-
- ------------------------
- RETURN CODES
-
- VC returns errorlevel:
-
- 0 if it finds the right disc in the drive.
- 1 if the disc has no volume label.
- 2 if the volume label is not the one you looked for.
- 3 if the disc is not a dos formatted disc. *
- 4 if there is not even a disc in the drive.
- 5 if an invalid command line or other program error.
-
- * I have not yet gotten around to coding this, so VC does not do this this
- errorlevel yet.
- ------------------------
- SUPPRESS OUTPUT
-
- an & character on the command line after the volume label you
- are checking for will cause output to be suppressed by the registered
- version.
-
- example:
-
- VC BACKUP-016 B &
-
- Will look for the volume backup-016 in the b: drive, and return the same
- error codes but will not display anything.
-
- ------------------------
- REDIRECTION
-
- The output of VC can be sent to nul to get rid of it with:
-
- VC Volumename [drive letter] > nul
-
- or to a file with:
-
- VC Volumename [drive letter] > filename
-
- You can create a log of what the program has done complete with
- dates and times by adding the following to your batch file:
-
-
- type dots.dat >> vc.log
- echo Y|more|date >> vc.log
- echo Y|more|time >> vc.log
- type cr.dat >> vc.log
- vc label drive [options] >> vc.log
-
- Where dots.dat is just a line of dots or something to separate entries,
- and cr.dat is a file that is just a couple of carriage returns.
-
- The begging messages of the unregistered version cannot be
- redirected.
-
- ------------------------
- REGISTRATION
-
- Registered users will not get the 'begging' messages. Yes, I
- realize they are annoying. I started out thinking people would
- register if gently reminded, and found out it was not true.
- Registration of this program is only a buck. If you're too
- cheap to pay that, then perhaps you deserve to be pestered.
-
- To register, send one buck and a self addressed stamped
- envelope to:
-
- Drake Koefoed 1409 Oak Patch Road # A9 Eugene, OR 97402
-
- Or send two bucks, and I will provide the envelope and address
- it and stamp it for you.
-
- Or send one buck and the name and password you will be using,
- and log onto my bbs to find out how to create the registered
- version. The bbs is:
-
- Assembler bbs (503) 343-6383
-
- You can also leave messages on:
-
- Out in the Styx bbs (503) 345 2582
-
- If you write and do not send a self addressed envelope, I won't answer.
- If you send a buck and no self addressed stamped envelope, I
- will assume you intend to call the board for registration
- information. I answer mail even without registrations, but not
- without the self addressed stamped envelope.
-
- ------------------------
- OTHER PROGRAMS
-
- VC is preceded by PRIN28, a printing program that prints out
- unformatted or misformatted files as if they had been done on a
- word processor. Prin will put the filename and date and time
- created at the top of the printout, add a left margin, print to
- file, number the pages, print in doublespace, wrap excessively
- long lines, and control the number of lines per page as
- specified by the user. Good for program source code, batch
- files, and text files formatted by people who don't know your
- printer can't do that many lines on a page. Prin, like VC, is
- written in assembler for high speed. Prin is multitasker
- aware, and will run in a 7k window.
-
- I may do some more batch utilities, and if I do, I will
- probably use the same method to create the registered version.
- If you are a registered user of VC, and you find something else
- by me that is later, try it and see. If it works, that will be
- my way of saying thanks for registering VC.
-