home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DOSFDATE.ZIP
/
FILEDATE.DOC
next >
Wrap
Text File
|
1993-12-27
|
3KB
|
72 lines
DOCUMENTATION FOR FILEDATE.EXE
Program: FILEDATE.EXE
Version: 1.0
Date: 12/27/93
By: Ty Drago
Peridot Consulting, Inc.
32 Pennsylvania Avenue
Stratford, NJ 08084
FILEDATE.EXE came about when a friend of mine called and asked if there
was a DOS utility that allowed someone to easily change the current date
and time on a file. I told him no, and then proceeded to write a little
something to do just that.
FILEDATE.EXE may be called from the DOS Command Line, from a batch prorgram,
or from a DOS-based program. It will work with Windows-based programs, but
requires Windows to kick off a DOS session to do so and that's all a lot of
work and bother. Those interested in performing this task from a Windows
-based development package may check their local BBS for WINFDATE.EXE, which
is the Windows-based version of this utility. WINFDATE functions the same
way as FILEDATE, but may be called from a Windows program or from the Program
Manager's RUN facility.
Anyhow, FILEDATE takes three (3) parameters, and these must be provided in
exactly the manner it expects.
FILEDATE <C:\PATH\NAME.EXT> <MMDDYYYY> <HHMM>
C:\PATH\NAME.EXT = Name of file to be dated.
Full paths are supported but wildcards are
not permitted. FILEDATE works on only 1 file
at a time. What do you want for free?
MMDDYYYY = New date for file. Full year must be provided.
There should be no '-' or '/' between month,
date and year.
EX: 04/11/93 should be entered as 04111993
HHMM = New time for file. Hours and minutes in military
time. Seconds are reset to zero.
EX: Entering 1422 sets file time to 02:22:00 pm.
If any or all of these parameters are excluded, then FILEDATE will prompt
the caller to enter them. Once all parameters are entered, FILEDATE will
display the old date/time and the new date/time. To avoid any output at all
(such as for calls from programs), include ALL paramters at call-time.
In all cases: FILEDATE returns DOS errorlevels:
zero (0) if the file date/time was successfully changed.
one (1) if the file given could NOT be found.
two (2) if the file's current date/time could NOT be read.
three (3) if the file date/time could NOT be changed.
NOTE: THIS PROGRAM IS OFFERED AS FREEWARE, AND MAY BE DISTRIBUTED AND
USED WITHOUT CHARGE. THE SOURCE CODE IS AVAILABLE FOR A $10 FEE
BY WRITING TO THE ADDRESS ABOVE. THIS PROGRAM IS AS-IS AND
OFFERED WITHOUT ANY EXPLICIT OR IMPLICIT WARRANTY.