home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / DIR / RNDAT20E.ZIP / RENDATE.DOC next >
Encoding:
Text File  |  1991-12-19  |  2.4 KB  |  62 lines

  1. RENDATE v2.0, 19 december 1991
  2. ==============================
  3. by Charles Vachon
  4.  
  5.  
  6. THIS SOFTWARE IS HEREIN PLACED IN THE PUBLIC DOMAIN BY IT'S AUTHOR
  7.  
  8. YOU CAN:
  9.  
  10.     . USE THIS SOFTWARE WITHOUT RESTRICTION FOR NON-PROFIT PURPOSES
  11.     . DISTRIBUTE THIS SOFTWARE, PROVIDED THAT IT IS BEING DISTRIBUTED IN
  12.       IT'S ORIGINAL FORMAT, COMPRISED OF:
  13.       . RENDATE.EXE, THE EXECUTABLE FILE
  14.       . RENDATE.DOC, THE SOFTWARE'S DOCUMENTATION
  15.  
  16. YOU CAN NOT:
  17.  
  18.     . HOLD THE AUTHOR OF THIS SOFTWARE RESPONSIBLE FOR ANY LOSS
  19.       RELATED TO THE DIRECT OR INDIRECT USE OF THIS SOFTWARE
  20.  
  21.     . MODIFY THE PROGRAM OR IT'S DOCUMENTATION
  22.  
  23.  
  24. RENDATE is a command-line utility allowing one to RENAME A FILE, GIVING
  25. IT A NAME COMPOSED OF APPARENTLY RANDOM CHARACTERS, FORMING A UNIQUE
  26. COMBINATION.
  27.  
  28. The name of the file is based on the date (month, day) and time (hour,
  29. minute, second, 25th of a second) of the program execution. The smallest
  30. time interval leading to different names is the 25th of a second. The file
  31. names created by RENDATE are unique within a year.
  32.  
  33. RENDATE only modifies the first part of the file name. The extension
  34. part is not affected by the program execution.
  35.  
  36. The first parameter for RENDATE is the name of the file to rename
  37. (including drive:directory\name.extension if necessary). The wildcards
  38. ARE NOT supported. For example, REPORT??.WK1, *.EXE and DILIGENT.0* are
  39. all INVALID names to pass to RENDATE. To the name specified on the
  40. command-line must correspond a single file for RENDATE to complete
  41. execution.
  42.  
  43. RENDATE also recognize the special sequences ? and /?, which bring a
  44. help screen. The same screen is also shown whenever no parameter is
  45. specified.
  46.  
  47. Optionally, a second parameter can be passed to RENDATE. It is the
  48. directory (drive:\directory, but NO filename) in which you want a batch
  49. file named RENDATE.BAT be created. This batch file contains a single
  50. command, that is a SET RENDATE=New_File_Name line reflecting the actual
  51. name the renamed file was given. OK, I know this is less elegant than
  52. writing directly in the environment block, but it does what I want, is
  53. simple to program and works with any version of DOS!
  54.  
  55. RENDATE completes execution with an exit code:
  56.  
  57. 0 : everything worked fine. The file has been renamed and the batch file
  58.     was created (if asked for).
  59.  
  60. 1 : something has gone bad during execution. The rename has not take
  61.     place. Read the error message on screen to find out what happened.
  62.