home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / iaktimes.zip / iaktimes.txt < prev   
Text File  |  1995-05-28  |  2KB  |  46 lines

  1. IAKTIMES.CMD
  2.  
  3. This OS/2 command file displays and totals the connection times collected
  4. by SLIPPM.EXE ("IBM Dial-up for TCP/IP" or "Dial Other Internet Providers").
  5. It is *not* for Advantis users ("IBM Internet Dialer" or DIALER.EXE).
  6.  
  7. The connection times are extracted from the TCPOS2.INI file stored in the
  8. path identified by the ETC environment variable.  SLIPPM stores the time
  9. under a separate INI 'application' for each 'connection name' using the
  10. key TOTAL_CONNECT.  IAKTIMES.CMD will find all connection names with non-zero    
  11. total connect times, display them and total them in 'hh:mm:ss' format and
  12. 'nn days, hh:mm:ss' format.
  13.  
  14. I wrote this .cmd file because my provider gives me 100 hours and I wanted to    
  15. see the connection time in terms of hours, not days.  Also, I use two different    
  16. 'connections' as defined by SLIPPM to access the same provider -- depending on    
  17. the modem I can get at the other end -- so I needed to be able to total the    
  18. connection times.
  19.  
  20. Syntax:
  21.  
  22.   IAKTIMES
  23.  
  24. Sample Output:
  25.  
  26.   ScruzV34        81905   22:45:05 (         22:45:05)
  27.   ScruzVFC       127810   35:30:10 ( 1 day,  11:30:10)
  28.   ----------------------------------------------------
  29.   total          209715   58:15:15 ( 2 days, 10:15:15)
  30.  
  31. The first number is the number of seconds connected which is how SLIPPM stores
  32. them in TCPOS2.INI.  This number is converted to <hours>:<minutes>:<seconds>
  33. format (and nn day(s), hh:mm:ss).
  34.  
  35. The connection time is reset via the SLIPPM menu pull-down 'Reset Total Connect Time'.
  36.  
  37. Hope you find it useful.  Feel free to distribute as you see fit.  Please include this    
  38. text file and drop me a 'post-card' if you find the program useful.
  39.  
  40. Dan Douglas               May 28, 1995
  41. dandoug@scruznet.com
  42.  
  43.  
  44. note for Advantis users: inetlog and inettime are two packages I found on Hobbes to do
  45.                          similar things based on CONNECT.LOG.  This package is intended
  46.                          for users of 'other' internet providers via SLIPPM.