home *** CD-ROM | disk | FTP | other *** search
-
- DATEREN.DOC - Documentation for DateRen version 1.03 12/05/1991
-
- Documentation and executable code Copyright (c) 1991 Michael E. Ralphson
-
-
- Disclaimer:
- ===========
-
- The Author retains copyright in that he alone has the right to make copies for
- profit. In all other respects users may treat this software as if it were in
- the Public Domain, as long as the package is distributed whole and unmodified.
-
- In my opinion this software is perfectly safe and is free of any serious bugs,
- however I have to make it clear that use of this software constitutes the
- user's full acknowledgement that the author takes no responsibility WHATSOEVER
- for the consequences of such use.
-
- Commercial users must register within 30 days if they wish to continue using
- this software. For non-commercial users registration is purely voluntary. See
- enclosed Register.Txt for more information.
-
-
- Introduction:
- =============
-
- DateRen renames files to incorporate the current date. There are other programs
- that achieve this, some are American (and thus put the day and month in the
- 'wrong' order) and some use the Julian day-of-year number which is a compact
- three digit format, but rather difficult for human beings to decipher.
-
- DateRen owes its existence to Mark Cracknell who originally asked for such a
- utility and specified how it should work.
-
-
- Usage:
- ======
-
- Basically there are four different ways in which DateRen can be used.
-
- 1) DateRen <filespec>
-
- DateRen will look for files that match <filespec> (which could be a single file
- name or a wild-card group such as *.DAT) and rename them in the following way:
-
- NAME.EXT becomes DDMONYY.EXT
-
- FILES.TXT becomes 28OCT90.TXT if DateRen is run on the 28th of October 1990
-
- If a file already exists with the target name, DateRen will append a one-letter
- suffix to the main part of the name eg: 28OCT90A.TXT, if this already exists
- DateRen tries 28OCT90B.TXT etc etc. In the current version DateRen will stop
- processing after it reaches 28OCT90Z.TXT
-
- 2) DateRen <filespec> <.extension>
-
- DateRen will look for files matching <filespec> as above, but will replace each
- file's extension with <.extension>
-
- Assuming a command-line: DateRen Files.Txt .Fls
-
- FILES.TXT becomes 28OCT90.FLS
-
- The one-letter suffix is applied as above if the target file already exists.
-
- 3) DateRen <filespec> /F
-
- DateRen will look for files matching <filespec>, but will replace each file's
- extension with the first three letters of the file's original name. Command
- line switches may be in upper or lower case.
-
- Assuming a command-line: DateRen Files.Txt /F
-
- FILES.TXT becomes 28OCT90.FIL
-
- 4) DateRen <filespec> /S
-
- DateRen will look for files matching <filespec>, renaming each to reflect the
- last date the file was modified.
-
-
- Further Examples:
- =================
-
- 1) At the end of each working day, a report produced by a program must be
- renamed ready for archiving at the end of the week.
-
- Command-line: DateRen Daily.Rep
-
- DateRen v1.03 (12/05/91), Copyright (c) 1991 Michael E. Ralphson
-
- C:\REPORTS\DAILY.REP -> C:\REPORTS\29OCT90.REP
-
-
- 2) A group of related files of different types must be dated, so they can be
- referred to as either *.Ext or DDMONYY*.*
-
- Command-line: DateRen Aurora.* .Aur
-
- DateRen v1.03 (12/05/91), Copyright (c) 1991 Michael E. Ralphson
-
- Using extension .AUR
-
- C:\TURBO\AURORA.EXT -> C:\TURBO\29OCT90.AUR
- C:\TURBO\AURORA.EXE -> C:\TURBO\29OCT90A.AUR
- C:\TURBO\AURORA.CFG -> C:\TURBO\29OCT90B.AUR
- C:\TURBO\AURORA.PRO -> C:\TURBO\29OCT90C.AUR
- C:\TURBO\AURORA.HLP -> C:\TURBO\29OCT90D.AUR
- C:\TURBO\AURORA.FON -> C:\TURBO\29OCT90E.AUR
-
-
- 3) A group of files with the same extension must be dated, it must be obvious
- both what the original file was called and when it was created. Used when
- the file-type (the extension) can be safely assumed.
-
- Command-line: DateRen *.Acc /F
-
- DateRen v1.03 (12/05/91), Copyright (c) 1991 Michael E. Ralphson
-
- The extension will be the first three letters of the file name.
-
- C:\ACCOUNTS\WALES.ACC -> C:\ACCOUNTS\29OCT90.WAL
- C:\ACCOUNTS\ENGLAND.ACC -> C:\ACCOUNTS\29OCT90.ENG
- C:\ACCOUNTS\IRELAND.ACC -> C:\ACCOUNTS\29OCT90.IRE
- C:\ACCOUNTS\SCOTLAND.ACC -> C:\ACCOUNTS\29OCT90.SCO
-
- 4)
-
-
- Revision History:
- =================
-
- 1.00 - From Mark Cracknell's original specification
-
- 1.01 - Allows wildcards and /F syntax
-
- 1.02 - Internal rewrite. Can rename Read-Only files.
-
- 1.03 - General revision. /S syntax.