home *** CD-ROM | disk | FTP | other *** search
-
-
- Signoff is a small program that when executed looks into the environment
- for USER=UserID. It then displays the message "UserID Logged Off Date time"
- where date is the Day of Week, The month, day and year. Time is HH;MM.
-
- If USER=UserID is NOT found in the environment then the program substitutes
- the word "User" for UserID in the signoff display message.
-
- Signoff.exe is intended for use with my password program PSWD111 ver 1.11 or
- newer (version 1.16 as of this writing).
-
- Below is a sample batch file which the user could create for using signoff
- with my password program. It is assumed that the batch file would be called
- from the user's menu program:
-
-
-
-
- REM sineoff.bat
- @ echo off <----- Turns echo off
- signoff <----- Executes signoff.exe
- set USER= <----- Removes User ID from DOS environment.
- signon.bat <----- Executes signon.bat batch file.
-
-
-
- contents of signon.bat:
-
- REM signon.bat
- @ echo off <----- Turns echo off
- break off <----- Turns CNTRL-C/BRK off
- :start
- password /B/T <----- Executes password.exe
- if errorlevel 1 goto start <---- Logon unsuccessful, goto start
- tmp.bat <----- Executes TMP.BAT which was created by
- password.exe. When TMP.BAT is run it
- places the user ID into the DOS environment
-
- del tmp.bat <----- Delete TMP.BAT batch file
- menu.exe <----- Execute a menu program.
- goto start <----- After leaving menu program goto :start
-
-
-