home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1994 February / psl_9403.zip / psl_9403 / DOS / UT_SYSTM / QHPFS.ZIP / HPFSTIME.TXT < prev   
Text File  |  1993-12-10  |  11KB  |  237 lines

  1.          HPFSTIME   Copyright 1993 by Ira J. Minor. All rights reserved.
  2.  
  3.          Table of Contents
  4.  
  5.          1) Introduction
  6.          2) Command Syntax
  7.          3) Examples
  8.          4) Technical discussion
  9.  
  10.  
  11.          1) Introduction
  12.  
  13.          HPFSTIME is SHAREWARE written and supported by:
  14.  
  15.                      Ira J. Minor
  16.                      13024 S.W. 90 Court
  17.                      Miami, FL 33176
  18.  
  19.                      Phone (305) 251-1875
  20.  
  21.          If you find this program useful, as I know you will, please
  22.          send a registration fee of $10 along with your comments,
  23.          criticism and suggestions. I am working on additional
  24.          enhancements as well as other useful OS/2 utilities and tools.
  25.  
  26.          Thank you.
  27.  
  28.  
  29.          Have you ever wondered what's going on when your hard disk
  30.          light keeps flashing on and off. Well, wonder no more.
  31.          HPFSTIME generates a list of files, for a given disk partition
  32.          (drive), that meet the specified HPFS date/time stamp
  33.          selection criteria. The HPFS file system maintains three sets
  34.          of date and time stamps for each file on an HPFS formatted
  35.          partition. They are as follows.
  36.  
  37.          a) the date and time the file was Created.
  38.          b) the date and time the file was Last Accessed.
  39.          c) the date and time the file was Last Written.
  40.  
  41.          For a detailed explanation of when these date/time stamps
  42.          are updated, see the technical discussion section of this
  43.          document.
  44.  
  45.  
  46.          2) Command Syntax:
  47.  
  48.          HPFSTIME drive{:}{\}{path} {selection option}
  49.  
  50.          Selection options:
  51.          N         files that have Never been accessed since creation.
  52.          R         files that have been Read but never written since creation.
  53.          T         Total files, irrespective of date and time stamps.
  54.          Cdate     files Created since "date".
  55.          Cminutes  files created in the last "minutes".
  56.          W         files Written since creation.
  57.          Wdate     files Written since "date".
  58.          Wminutes  files Written in the last "minutes".
  59.          A         files Accessed since creation.
  60.          Adate     files Accessed since "data".
  61.          Aminutes  files Accessed in the last "minutes".
  62.  
  63.          Notes:
  64.          1) If only a drive letter is entered, with no path,
  65.             the search starts with the root directory and all
  66.             subdirectories on the drive are searched.
  67.  
  68.          2) If a drive letter and path are entered, the search starts
  69.             at the given path and all subdirectories from that path
  70.             are searched.
  71.  
  72.          3) If no selection option is entered, the default selection
  73.             option is Atodays-date and generates a list of all files
  74.             Accessed today.
  75.  
  76.          4) Dates MUST be EXACTLY six characters of the form YYMMDD.
  77.  
  78.          5) Minutes is the number of minutes prior to now. Todays
  79.             date is assumed.
  80.  
  81.          6) All files, including hidden, system, read only and archived
  82.             are searched.
  83.  
  84.          Output:
  85.          If sorted output is desired, see examples below, the
  86.          following columns should be used:
  87.  
  88.          Sort by          Column
  89.          Created             1
  90.          Last Access        16
  91.          Last Written       31
  92.          File Name          49
  93.  
  94.  
  95.          3) Examples:
  96.  
  97.          HPFSTIME D:           list all files on the D drive that were
  98.                                accessed today (default).
  99.  
  100.          HPFSTIME D:\LOTUS     list all files, on the D drive beginning
  101.                                with the Lotus directory, that were
  102.                                accessed today (default).
  103.  
  104.          HPFSTIME D: W930601   list all files, on the D drive, that were
  105.                                Written since June 1, 1993.
  106.  
  107.          HPFSTIME D: A90       list all files, on the D drive, that were
  108.                                Accessed in the last 90 minutes.
  109.  
  110.          Examples using various command line capabilities:
  111.  
  112.          HPFSTIME D: > PRN         Redirect output to the default printer.
  113.  
  114.          HPFSTIME D: | MORE        Pause output to the screen after each
  115.                                    screen full.
  116.  
  117.          HPFSTIME D: | SORT /+16   Sort output by Last Access time stamp.
  118.  
  119.          HPFSTIME D: | SORT /+31 > PRN  Sort output by Last Written time stamp
  120.                                         and redirect output to the printer.
  121.  
  122.  
  123.          4) Technical Discussion:
  124.  
  125.          Have you ever wondered what OS/2 is doing when your hard disk
  126.          light is flashing on and off for what seems to be unbelievably
  127.          long periods of time? Well, wonder no more. OS/2, when accessing
  128.          an HPFS formatted partition, time stamps every file when it is
  129.          Created, Accessed or Written. The files include programs, DLLs,
  130.          data, etc. By running the HPFSTIME program you can create a
  131.          listing of a subset of the files that are of interest to you.
  132.          Some of the ways I have used HPFSTIME are as follows:
  133.  
  134.          1) Run immediately after booting OS/2 to see what files get
  135.             loaded at boot time. If D: is the boot drive, run HPFSTIME D:.
  136.             If you are interested in the order of program load, run
  137.             HPFSTIME D: | SORT /+16. Remember that there are some files
  138.             that get loaded prior to the HPFS file system being initialized
  139.             and CONFIG.SYS loaded. These files will not show up. I have done
  140.             additional experimentation to determine what these files are
  141.             and the order that they get loaded.
  142.  
  143.          2) Run immediately after booting OS2 to see what files get Written
  144.             at boot time. HPFSTIME C: W10 will display all files on the C:
  145.             drive that where Written in the lat 10 minutes.
  146.  
  147.          3) Shut down the system, boot OS/2 from the install diskettes,
  148.             run HPFSTIME to see what files get written at shutdown.
  149.             Rather than boot from the install diskettes I have set up
  150.             a four meg partition on my hard disk that boots a mini OS/2
  151.             system that will run a single text mode OS/2 program such as
  152.             CHKDSK, FORMAT, HPFSTIME, or the C Set++ compiler. It
  153.             requires about three megs of files which I copy from my big
  154.             OS/2 system. By using HPFSTIME I was able to determine which
  155.             files I needed to copy and in what order. By copying the files
  156.             in the order that they will be loaded I minimize arm movement
  157.             so the boot of the mini system goes very fast. Of course I use
  158.             BootManager to give me the option of booting my big or mini
  159.             OS/2 systems.
  160.  
  161.          4) I do a lot of C Set++ compiles. By running HPFSTIME against
  162.             my compiler and toolkit directories I was able to see exactly
  163.             what files were accessed. I created a VDISK and a CMD file
  164.             that copies the files from the hard disk to the VDISK. I also
  165.             had to modify CONFIG.SYS so the compiler will look for what it
  166.             needs in the VDISK first. My compiles go much faster now. I
  167.             also discovered that it was using the link editor that comes
  168.             with OS/2 rather than the one that comes with the compiler.
  169.             In general, if you have multiple files with the same name, in
  170.             different directories, you can see which one was actually
  171.             accessed.
  172.  
  173.          Discussion of when HPFS date/time stamps are updated.
  174.  
  175.          The HPFS file system maintains three sets of date
  176.          and time stamps for each file on an HPFS formatted
  177.          partition. They are as follows:
  178.  
  179.          1) The date and time the file was Created.
  180.          2) The date and time the file was Last Accessed.
  181.          3) The date and time the file was Last Written.
  182.  
  183.          The Created time stamp is the date and time the file
  184.          was originally placed on your hard disk. When a disk
  185.          partition is formatted there a