home *** CD-ROM | disk | FTP | other *** search
- DONATIONS:
- ---------
- This is Shareware software. If you try this program, decide you like it
- then please support shareware and pay the requested registration fees.
-
- You are expected to make copies of this program for distribution to your
- friends and associates. You may not sell this software in ANY way!
-
- The registration fee is $5.00, payable to me after you try this program
- and decide it deserves a place on your hard disk. If you do this you
- will be known as an honest human being great and few among the
- multitudes of human kind! So don't delay and do it today! Send your
- $5.00 to..............
-
- MiCom Business Systems Have MSC 4.0, MASM 4.0, QB 3.0,
- David Scheall Turbo Basic and C 1.0, Pascal 3.0,
- 6918 Alabama Avenue DB III, Micro Focus COBOL Compilers.
- Canoga Park, CA. 91303 Will Travel! We speak LOTUS also!
-
- Be sure to mention which MiCom product and version you are registering.
- If you dont pay the fee then drop me an Email line for suggestions
- on improvements and your comments. C you all later! get it!? he he.
-
- GEnie send mail to D.SCHEALL and on CompuServe to 71360,2662.
-
- One more thing, I have a Question. What is I/O?
-
- The financial statement of a computer owner! Get it? I owe??? yuk yuk.
-
- Oh oh I can't stop....What is CORE Storage?
-
- A place where they keep used Apples, eg. Macintosh!
-
-
- DESCRIPTION:
- -----------
- PW.EXE is a program that will prompt a user for a password. The user
- entered password will be validated against the password file specified
- in the execution command line. PW.EXE disables the Control-C and the
- Control-Break key sequence. A valid password must be entered or the
- program will not continue.
-
- Password files are created using ANY word processor or editor that can
- produce files in text or ASCII format. Passwords may be up to 18
- charcters and may contain special characters and numbers but not spaces.
- The program is NOT case sensitive, It will treat upper and lower case
- letters alike, ie. the letter 'a' and the letter 'A' is the same.
-
- Password files may have any attribute and you may give them hidden or
- system attributes so they will be hidden from normal dir listings.
-
- If PW.EXE is executed without a command line password file specification
- the program will terminate with a errorlevel of 1.
-
-
- USAGE:
- -----
- PW drive:\path\password file name.ext
-
- EXAMPLE:
-
- PW \DOS\PW.TXT
-
- This command executes password and searches for a file in the \DOS
- directory of the current drive for the password validation file named
- PW.TXT.
-
- PW C:\123\PW.123
-
- This command executes password and searches for a file in the C:\123
- directory for the password validation file named PW.123.
-
-
- TIPS:
- ----
- Password should be in a directory that is part of the PATH environment.
-
- Password should always be executed from a batch file. This will provide
- the most security for your system. The most obvious place to start is
- with the AUTOEXEC.BAT file.
-
-
- TIPS CONFIG.SYS:
- ----------------
- If you are not using DOS 3.2 or newer skip this paragraph. If you're a
- 3.2 or 3.3 user then start with your config.sys file. Mine looks like
- this: ----------------------------------------------------------+
- |
- device=remm.sys |
- device=rex.sys 528 |
- device=fastdisk.sys /extm |
- files=20 |
- buffers=20 |
- lastdrive=z |
- SHELL=C:\COMMAND.COM /P <------ This is the statement+
-
- Let me draw your attention to the SHELL=C:\COMMAND.COM /P statement.
-
- Purpose: Replaces the normal command interpreter (COMMAND.COM) with a
- different program.
-
- Usage: SHELL=[d:]filespec [parms] (in the CONFIG.SYS file)
-
- Remarks: As the last step in the boot sequence, DOS loads and executes
- high-level command interpreter (COMMAND.COM) which displays
- DOS prompt and handles user input. If you use the SHELL =
- command, you can install a different command interpreter.
-
- Examples: SHELL=COMMAND.COM /E:1000 /P
- (DOS 3.2+) loads the DOS command interpreter with 1000 bytes of
- environment space (/E) and
- forces execution of AUTOEXEC.BAT (/P)
-
- SHELL=menushel.com replaces COMMAND.COM with a comercial
- program name MENUSHEL.COM.
-
- So as you see all I do is force the execution on the AUTOEXEC.BAT file
- at system initialization. Now comes the next step, AUTOEXEC.BAT.
-
-
- TIPS AUTOEXEC.BAT:
- ------------------
-
- For the following discussion, the bat file statements will be commented
- to the right as to the purpose for each statement.
-
- Insert the folling statements as THE FIRST statements in your AUTOEXEC
- BAT files.
-
- ECHO OFF Turn off listing of BAT statements as they
- are executing.
-
- BREAK OFF Check for Ctrl-Break only during console I/O
-
- PATH C:\DOS Establish Search path for programs and BAT
- file commands not in the current drive or
- directory.
-
- PW \DOS\PW.PWD Execute password and look for the password
- validation file in the \DOS directory of
- the current drive.
-
- IF ERRORLEVEL 1 AUTOEXEC.BAT If password validation fails or the passwor
- validation file can not be found, then exe-
- cute AUTOEXEC.BAT. Because of the /P
- option used in the SHELL statement of CONFIG
- SYS, AUTOEXEC.BAT MUST execute.
-
- REST of AUTOEXEC statements
-
- TYPE MENU.TXT Type Hard Disk Menu. See Other uses.
-
-
- TIPS OTHER USES:
- ----------------
-
- If you use the N.BAT method for loading and executing programs then
- PW.EXE may be used to provide and additional level of security for
- the use of programs. Consider the following.
-
- The last statement of the AUTOEXEC.BAT file is instructions to type a
- file called MENU.TXT. This file is normally a file that looks something
- like:
-
- YOUR PERSONAL COMPUTER
- PROGRAM SELECTION MENU
-
- 1. Lotus Symphony 2. dBase 3+
- etc. etc. etc. etc.
-
- Enter [L] followed by Program Number to exec that Program.
-
- |
- C:> L 1 <--+
-
- In our example the user wants to run Symphony and enters 'L 1' and hits
- the Enter key at the DOS command line. This would cause DOS to load a
- file called L.BAT and pass a parameter of 1 to it.
-
- Now if this file L.BAT looked like the following:
-
- echo off
- PROMPT $p$ $d at $t$_$n$ = $
- C:
- CLS
- IF %1 == "" GOTO ERROR
- IF %1 == 1 GOTO SYM
- IF %1 == 2 GOTO DBAS4
-
- GOTO ERROR
-
- :DBAS4
- PATH D:\DB3;C:\DOS
- D:
- CD\DB3
- PW DB3.PWD will load password and look in the DB3 directory
- for a password validation file named DB3.PWD.
- This could be a different password used at boot up.
- DBASE.EXE
- GOTO CONT
-
- :SYM
- D:
- CLS
- CD\SYM
- ACCESS.COM
- GOTO CONT
-
-
- :ERROR
- echo You have made an invalid selection. Try again
-
- :CONT
- C:
- cd\
- exit
-
- :EOJ
- CLS
- TYPE MENU.TXT
-
- Well thats enough for now! If you have problems implementing this
- program to it's fullest, call and you'll find the best customer support
- you have ever seen.
-
- I use the batch file method described above to manage windows in a
- DESQview environment. Password provides just a little more security
- for the programs and data I consider sensitive.
-
- Well take care, use this program in good health, and have a nice day!
-
- David Scheall
- October 1987