home *** CD-ROM | disk | FTP | other *** search
- RENDATE v2.0, 19 december 1991
- ==============================
- by Charles Vachon
-
-
- THIS SOFTWARE IS HEREIN PLACED IN THE PUBLIC DOMAIN BY IT'S AUTHOR
-
- YOU CAN:
-
- . USE THIS SOFTWARE WITHOUT RESTRICTION FOR NON-PROFIT PURPOSES
- . DISTRIBUTE THIS SOFTWARE, PROVIDED THAT IT IS BEING DISTRIBUTED IN
- IT'S ORIGINAL FORMAT, COMPRISED OF:
- . RENDATE.EXE, THE EXECUTABLE FILE
- . RENDATE.DOC, THE SOFTWARE'S DOCUMENTATION
-
- YOU CAN NOT:
-
- . HOLD THE AUTHOR OF THIS SOFTWARE RESPONSIBLE FOR ANY LOSS
- RELATED TO THE DIRECT OR INDIRECT USE OF THIS SOFTWARE
-
- . MODIFY THE PROGRAM OR IT'S DOCUMENTATION
-
-
- RENDATE is a command-line utility allowing one to RENAME A FILE, GIVING
- IT A NAME COMPOSED OF APPARENTLY RANDOM CHARACTERS, FORMING A UNIQUE
- COMBINATION.
-
- The name of the file is based on the date (month, day) and time (hour,
- minute, second, 25th of a second) of the program execution. The smallest
- time interval leading to different names is the 25th of a second. The file
- names created by RENDATE are unique within a year.
-
- RENDATE only modifies the first part of the file name. The extension
- part is not affected by the program execution.
-
- The first parameter for RENDATE is the name of the file to rename
- (including drive:directory\name.extension if necessary). The wildcards
- ARE NOT supported. For example, REPORT??.WK1, *.EXE and DILIGENT.0* are
- all INVALID names to pass to RENDATE. To the name specified on the
- command-line must correspond a single file for RENDATE to complete
- execution.
-
- RENDATE also recognize the special sequences ? and /?, which bring a
- help screen. The same screen is also shown whenever no parameter is
- specified.
-
- Optionally, a second parameter can be passed to RENDATE. It is the
- directory (drive:\directory, but NO filename) in which you want a batch
- file named RENDATE.BAT be created. This batch file contains a single
- command, that is a SET RENDATE=New_File_Name line reflecting the actual
- name the renamed file was given. OK, I know this is less elegant than
- writing directly in the environment block, but it does what I want, is
- simple to program and works with any version of DOS!
-
- RENDATE completes execution with an exit code:
-
- 0 : everything worked fine. The file has been renamed and the batch file
- was created (if asked for).
-
- 1 : something has gone bad during execution. The rename has not take
- place. Read the error message on screen to find out what happened.
-