home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / dirutl / fdate12a.arc / FDATE.DOC < prev    next >
Encoding:
Text File  |  1989-12-18  |  3.0 KB  |  88 lines

  1.  
  2. FDATE(DOS)            MSDOS Operating System           FDATE(DOS)
  3.  
  4. NAME
  5.      fdate - flexibly rename files to their dates
  6.  
  7. SYNOPSIS
  8.      fdate [ -d ] [ -x ] [ -j ] [ -c ] [ -f ] [ -sdays ] [ -odow
  9.      ] [ -l ] [ -a ] file [[ options ] file  ... ]
  10.  
  11. DESCRIPTION
  12.      Fdate is a program which uses certain rules to rename the
  13.      files given to it to either the date of the file itself, or
  14.      the ``current'' date.  Fdate currently supports the Julian
  15.      date format, YYYYMMDD format, and ``hex-seconds-since-the-
  16.      epoch'' which should be familiar to C programmers.
  17.  
  18.      Options are:
  19.  
  20.         -d     Date - the filename is set to the date, in
  21.                YYYYMMDD format (default).
  22.  
  23.         -x     Hex - the filename is set to the number of
  24.                seconds, in hex, that last midnight GMT was, since
  25.                0:01 GMT on January 1, 1970.
  26.  
  27.         -j     Julian - the file extension (filetype) is set to
  28.                the Julian; i.e., the number of days since January
  29.                1, starting with 001.
  30.  
  31.         -c     Current - use the ``current'' date, and not the
  32.                date on the file.
  33.  
  34.         -f     File - use the file's date, not the ``current''
  35.                date (default).
  36.  
  37.         -sdays Subtract - subtract days days from the ``current''
  38.                date.
  39.  
  40.         -odow  Force - force the ``current'' date to the weekday
  41.                numbered dow (using the scheme 0=Sunday, 6=Satur-
  42.                day, etc.).
  43.  
  44.         -l     Less - only do the rename if the date on the file
  45.                is less than the ``current'' date.
  46.  
  47.         -a     Always - always do the rename (default).
  48.  
  49. NOTES
  50.      The -s option is always performed before the -o option.
  51.      Thus, it is possible (although perhaps not to useful) to
  52.      rename files to the date of last Tuesday, last year.
  53.  
  54.      The -o option always uses the specified day immediately
  55.      preceding today.
  56.  
  57. AUTHOR
  58.      Garrett A. Wollman
  59.      7 Worcester Street
  60.      South Burlington, VT 05403
  61.      USA
  62.      (summer)
  63.      gwollman@jhunix.hcf.jhu.edu
  64.  
  65. SEE ALSO
  66.      midnight(DOS), isnewer(DOS)
  67.  
  68. COPYRIGHT
  69.      Copyright (C) 1989, Garrett A. Wollman
  70.      Portions Copyright (C) 1985-1989, Microsoft Corporation
  71.  
  72. RESTRICTIONS
  73.      By using this program, you agree that Garrett A. Wollman
  74.      shall be held blameless for any damages resulting from use
  75.      of or inability to use this software, regardless of jurisd-
  76.      iction.
  77.  
  78.      Commercial and governmental users are required to pay a
  79.      license fee of USD 2.50 for each computer to which this pro-
  80.      gram is accessible.  Any usage of this program, beyond a
  81.      30-day trial period, without this payment (if required) is
  82.      absolutely prohibited.
  83.  
  84.      Organizations which are recognized non-profits under section
  85.      501(c)(3) of the U.S. Internal Revenue Code, or analogous
  86.      legislation in other countries, are exempt from this
  87.      requirement, although payment would still be appreciated.
  88.