DOSLock v1.0
12/25/95 - Merry Christmas!

(c)1995-96 Chris Dornfeld
E-mail: smack@dnclab.Berkeley.EDU
WWW:    http://dnclab.Berkeley.EDU/~smack/ti

Latest versions of DOSLock and WinLock available at the above WWW address.

DOSLock is a program to edit-lock/unlock TI-82 and TI-85 calculator program
files.  These files end in .82P and .85P, respectively.

-------
 Usage
-------

1. DOSLOCK

   You will be asked for a filename and given a menu of options:

   [A]nalyze, [L]ock, [U]nlock, [Q]uit?

   If DOSLock identifies a file as Locked, you will not see the [L]ock option
   on the menu; the same is true with Unlocked files.

2. DOSLOCK <filename>

   This is the same as typing DOSLOCK alone, except the program will bypass
   the filename query.

3. DOSLOCK [switch] <filename>

   Valid switches are /A (analyze), /L (lock), and /U (unlock).

   DOSLock will attempt the desired operation and then return you to
   your operating system - no user intervention required.

-------------
 Errorlevels
-------------

If there are no errors, DOSLock will set the DOS errorlevel to 0.

If any of the following errors occur, DOSLock will set the errorlevel to 1:

    - Missing File                  - Attempted to lock a locked program
    - Read-only File                - Attempted to unlock an unlocked program
    - Aborted program               - File has bad checksum or is invalid

Here's a sample batch file testing the errorlevel:

@echo off
doslock %1 %2
if errorlevel == 1 echo Errors!!

---------------
 Miscellaneous
---------------

Here's a simple DOS command to analyze all TI-82 and TI-85 programs in a
directory:

C:\TI>for %f in (*.82p *.85p) do doslock /a %f

