home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / DOS_HELP / PSWD21.ZIP / SIGNOFF.DOC < prev    next >
Encoding:
Text File  |  1991-01-11  |  1.7 KB  |  45 lines

  1.  
  2.  
  3. Signoff is a small program that when executed looks into the environment
  4. for USER=UserID.  It then displays the message "UserID Logged Off Date time"
  5. where date is the Day of Week, The month, day and year.  Time is HH;MM.
  6.  
  7. If USER=UserID is NOT found in the environment then the program substitutes
  8. the word "User" for UserID in the signoff display message.
  9.  
  10. Signoff.exe is intended for use with my password program PSWD111 ver 1.11 or
  11. newer (version 1.16 as of this writing).
  12.  
  13. Below is a sample batch file which the user could create for using signoff
  14. with my password program.  It is assumed that the batch file would be called
  15. from the user's menu program:
  16.  
  17.  
  18.  
  19.  
  20.         REM sineoff.bat
  21.         @ echo off         <----- Turns echo off
  22.         signoff            <----- Executes signoff.exe
  23.         set USER=          <----- Removes User ID from DOS environment.
  24.         signon.bat         <----- Executes signon.bat batch file.
  25.  
  26.  
  27.  
  28.        contents of signon.bat:
  29.  
  30.         REM signon.bat
  31.         @ echo off         <----- Turns echo off
  32.         break off          <----- Turns CNTRL-C/BRK off
  33.         :start
  34.         password /B/T      <----- Executes password.exe
  35.         if errorlevel 1 goto start     <---- Logon unsuccessful, goto start
  36.         tmp.bat            <----- Executes TMP.BAT which was created by
  37.                                   password.exe.  When TMP.BAT is run it
  38.                                   places the user ID into the DOS environment
  39.  
  40.         del tmp.bat        <----- Delete TMP.BAT batch file
  41.         menu.exe           <----- Execute a menu program.
  42.         goto start         <----- After leaving menu program goto :start
  43.  
  44.  
  45.