I would like to enquire if anyone has updated the subject file:
=== Begin Cut ===
REDATE2.ZIP
Redate archive files to the date of the newest file within.
Contains C source code.
=== End Cut ===
Or know of any other utility that will perform this task?
I would like to enquire if anyone has updated the subject file:
=== Begin Cut ===
REDATE2.ZIP
Redate archive files to the date of the newest file within.
Contains C source code.
=== End Cut ===
Or know of any other utility that will perform this task?
Use the -o option to do this with Info-ZIP's zip on existing archives,
ie.
zip -o archive.zip
which should leave the archive contents unchanged. With RAR you can
use
rar c -znul -tl archive.rar
but this will remove any existing archive comments. If no comments
exist, RAR should leave the archive contents unchanged also (so the
CRC32 or MD5 checksum of the file will be as it was before you changed
the file's timestamp).
I don't know about other archivers. Ideally someone should write a program to do this that works with all common archive formats. I've
been thinking about it. ;-) I haven't found anything on the Web to
do this.
I would suggest that you locate the REDATE2.ZIP archive, because if
you're proficient at programming with C, the code is in the archive. Currently, it fixes the date for PAK, ZIP, ARJ and LZH files.
Now, if someone could fix the Y2K bug in the code.....
I would suggest that you locate the REDATE2.ZIP archive, because if
you're proficient at programming with C, the code is in the archive.
Currently, it fixes the date for PAK, ZIP, ARJ and LZH files.
I missed the "C source code available" on the first read! As it turns out, the source code is very DOS-specific, and not portable, so a lot
of work is needed there, but you could then have a version that worked natively under Windows/UNIX (that would support long file names for
eg.).
Now, if someone could fix the Y2K bug in the code.....
Resetting file date on TEST.ZIP to 10/24/102 14:57:50
Is that the only Y2K bug? Just a display issue? That's all I
noticed. I changed line 106 of redate.c to read:
Resetting file date on TEST.ZIP to 10/24/02 14:57:50
I assume you didn't want the century to show (like the old version).
You can download the new source + executable from
http://homepages.ihug.com.au/~ozzmosis/redate2/
I missed the "C source code available" on the first read! As it
turns out, the source code is very DOS-specific, and not portable, so
a lot of work is needed there, but you could then have a version that
worked natively under Windows/UNIX (that would support long file names
for eg.).
OS/2 would be nice, also. :-))))
Just curious.... I created an ARJ archive today, with the switches
that set archive date to newest date in archive (1991), then I touched
it with today's date. Ran REDATE (my Y2K "bug" version) on the archive
- I'm almost positive that REDATE sets the date on ARJ archives to the "time of creation" and not to that of the newest file in the archive.
Can you verify this behavior?
OS/2 would be nice, also. :-))))
I haven't run OS/2 for a few years. An OS/2 version (16 & 32-bit)
should be no problem though.
Just curious.... I created an ARJ archive today, with the switches
that set archive date to newest date in archive (1991), then Itouched it with today's date. Ran REDATE (my Y2K "bug" version) on
the archive - I'm almost positive that REDATE sets the date on ARJ
archives to the "time of creation" and not to that of the newest
file in the archive. Can you verify this behavior?
17:45 voodoo [e:\devel\csource\redate2]dir test.txt
2000-01-01 12:00a 16,209 test.txt
17:45 voodoo [e:\devel\csource\redate2]arj a test.arj test.txt
ARJ 2.81a Copyright (c) 1990-2002 ARJ Software, Inc. Jun 12 2002
Creating archive : TEST.ARJ
Adding TEST.TXT 28.9%
1 file(s)
17:45 voodoo [e:\devel\csource\redate2]dir *.arj
2002-10-25 5:45p 4,799 TEST.ARJ
17:45 voodoo [e:\devel\csource\redate2]redate *.arj
Resetting file date on TEST.ARJ to 10/25/02 17:45:18
17:45 voodoo [e:\devel\csource\redate2]dir *.arj
2002-10-25 5:45p 4,799 TEST.ARJ
Looks like it's broken. Maybe it only works with older ARJ archives.
17:47 voodoo [e:\devel\csource\redate2]del *.arj
Deleting E:\devel\csource\redate2\TEST.ARJ
1 file deleted
17:47 voodoo [e:\devel\csource\redate2]arj230 a test.arj test.txt
ARJ 2.30 Copyright (c) 1990-92 Robert K Jung. Jan 19 1992
Creating archive : TEST.ARJ
Adding TEST.TXT 29.0%
1 file(s)
17:47 voodoo [e:\devel\csource\redate2]dir *.arj
2002-10-25 5:47p 4,811 TEST.ARJ
17:48 voodoo [e:\devel\csource\redate2]redate *.arj
Resetting file date on TEST.ARJ to 1/01/00 00:00:00
17:48 voodoo [e:\devel\csource\redate2]dir *.arj
2000-01-01 12:00a 4,811 TEST.ARJ
Yep. ;-)
This is a list of the archiving utilities that I have on my hard drive.
The vast majority are seldom used and too many are rather old - I just
keep them around in the event that I should encounter a "strange
archive type."
There are probably more archiving programs that are not in the above
list - I haven't been pursuing the gathering of new types of archivers lately.
This is a list of the archiving utilities that I have on my hard
drive. The vast majority are seldom used and too many are rather
old - I just keep them around in the event that I should encounter
a "strange archive type."
...
There are probably more archiving programs that are not in the
above list - I haven't been pursuing the gathering of new types of
archivers lately.
Here's what I've got ;-)
PKZIP(R) Version 5.00 FAST! Compression Utility for Windows
Just to satisfy my curiosity, what OS(es) are you using?
PKZIP(R) Version 5.00 FAST! Compression Utility for Windows
hey, where have you got that? :)
AC: > Windows 2000, Windows 98SE & FreeBSD 4.5R.Just to satisfy my curiosity, what OS(es) are you using?
Hmmm...have you ever used one of the popular Linux distributions? If
Yes, how does Linux compare to BSD? I D/L'd the FreeBSD v4.2 iso
to CD but have not made the time to play around with same to
date. :( I understand it's much more secure?
Good info, thanks. I use Linux (Mandrake) in an automated environment
for Internet Client operations relating to FIDONet and Filegate, so
I guess I'm relatively secure.
My FTP client/server (Internet Rex) is bullet-proof. :)
My FTP client/server (Internet Rex) is bullet-proof. :)
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,023 |
Nodes: | 17 (1 / 16) |
Uptime: | 10:59:28 |
Calls: | 502,250 |
Calls today: | 4 |
Files: | 103,940 |
D/L today: |
10,954 files (2,264M bytes) |
Messages: | 299,702 |