home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
CHNGIT10.ZIP
/
CHANGEIT.DOC
< prev
next >
Wrap
Text File
|
1993-10-14
|
7KB
|
186 lines
Change It
Version 1.0
October 12, 1994
James Huckabey
3621-A Fraser Street
Bellingham, WA 98226 U.S.A.
═════════════════════════════════════════════════════════════════
Ever needed to change the date or time on a file, any file?
That is what I wrote ChangeIt for. It can change any file without
the read only attribute set. This program should be used with
some measure of caution. Some programs key configuration and data
files with the date and time on the files.
The program has to be in your path, in the current directory
or you must use full path to program. You can alter files
anywhere on your system and do not have to be on the drive or in
the directory where you want to alter files. It is much safer to
be in the directory, but not necessary to make the program work.
The archive should contain the following files:
CHANGEIT.DOC...........this file
CHANGEIT.EXE...........actual program
READ.ME................update file
FILE_ID.DIZ............BBS description file
READ.ME................update file
ARCHIVE.TXT............this list of files
Syntax:
ChangeIt [path]filename[.ext] [MM-DD-YYYY,K,S] [HH:MM:SS,K,S]
The file name can be any file name or DOS wildcard, which
can include a full drive and path if so desired or needed:
*.* *.TXT MINE.* M??E.* MINE.TXT
See your DOS manual for more details on the use of
wildcards.
Command line options for Date:
MM-DD-YYYY=set input date. This is a new date you want on
file(s)) other than the current
system date.
Valid date range: month(MM): 1..12, day(DD): 1..31
year(YYYY): 1980..2099. That's pretty straight forward.
Month and day can be one character each, but year should be
a full four characters. If you use just the last two (year)
the program checks the current century and adds that to the
year portion of the input date. Numbers must be separated by
a dash (-).
K=Keep current date. The date on file(s) remains unchanged.
S=System date. Change current date on file(s) to current DOS
system date.
Command line options for Time:
HH:MM:SS=set input time. The new time you want on file(s)
other than the current system time.
Valid time range: hour(HH): 0..23, minute(MM): 0..59,
second(SS): 0..59. That's pretty straight forward again. You
can omit the seconds and the program adds double zero (00)
for seconds, which do not show up on the DOS display.
Numbers must be separated by a colon (:).
K=Keep current time. The time on file(s) remains unchanged.
S=System time. Change current time on file(s) to current DOS
system time.
A note here about the time. In the program a twenty-four
hour clock is used. DOS converts this to a twelve hour time with
an "a" for A.M. or a "p" for P.M. (at least with DOS 5.0+).
00:00:00=12:00 A.M. (midnight), 12:00=12:00 P.M. (noon), 1:00 or
01:00=1:00 A.M. and 13:00=1:00 P.M., etc. This used to be called
military time, but in all reality it is just a twenty-four clock
(real time).
The Help Screen
Starting the program with no command line options produces
the help screen. The help screen is also produced on any errors
generated by command line or search errors.
Examples:
ChangeIt MINE.TXT
or
ChangeIt MINE.TXT S S
Both these commands are the same. The "Ss" tells the program
to use the current system date and time.
ChangeIt MINE.TXT S K
This changes the date but does not alter the time. "S" tells
the program to use the current system date and the "K" tells the
program to keep the current file time.
ChangeIt MINE.TXT 12-25-94 K
or
ChangeIt MINE.TXT 12-25-1994 K
These two examples give the file date that of Christmas Day
1994 in the 20th Century. In the 21st Century the date would be
12-25-2094 on the first example because the program would add
"20". The "K" tells the program to keep the current time on the
file.
ChangeIt MINE.TXT 12-25-94 00:00
or
ChangeIt MINE.TXT 12-25-1994 00:00:00
These two examples are the same as the previous one only the
time is changed to twelve o'clock A.M.
ChangeIt C:\UTILITY\*.TXT
This command changes all files with the "TXT" extension in
the C:\UTILITY directory to the current system date and time.
ChangeIt C:\UTILITY\*.* K S
This command changes ALL files in the C:\UTILITY directory
to the current time and does not alter the date. "K" tells the
program to keep the current file date and the "S" tells the
program to change the file time to the current system time.
Support
I am not asking for any money for this program, but if you
feel like sending me a contribution to support my programming
efforts it shall be greatly appreciated. You are under no
obligation to do so.
I am also interested in what you think of this of any of my
programs. I try to make programs as easy to run and understand as
possible. As for myself I do not like complicated or confusing
programs.
Thank You for your support