Hi All
Trying to import some cdroms into my system, but im having trouble importing the
file descriptions.
Do you know how (if at all possible) i can import the standard 00_index.txt file that is in each directory on the CD.
A lot of the old software used to be able to read those and import the information for the files that may be lacking a FILE_ID.DIZ
The format is below from one of the cdroms im trying to import.
Any help appreciated
sbbs@synchronet:~$ more /SBBS-Files/CDROM/MSDOS_Archives/4dos/00_index.txt NOTE: This list was created on Mon, 25 Nov 91 10:06:04 MST.
Some files may have been added or deleted since that date.
See file MSDOS/FILEDOCS/AAAREAD.ME for additional information.
NOTE: Type B is Binary; Type A is ASCII
Directory MSDOS/4DOS/
Filename Type Length Date Description ==============================================
4D2411.ZIP B 7006 901229 TSR critical error handler (INT 24) for
The sample you pasted doesn't look like any "standard" file format that I'm aware
of.
You can see how this would be a problem for to parse: the program/script wouldn't
know if "NOTE:", "Some", "See", and "Directory" were supposed to be filenames or
not.
You could likely hack something together (see parse_file_list() in exec/addfiles.js
for a starter), but it probably be easier to just write a script in whatever
language you're most familiar, that converts those files into an actual standard
file format, like FILES.BBS, instead.
Re: 00-index.txt files
By: Digital Man to Charles Blackburn on Wed Sep 07 2022 18:31:14
The sample you pasted doesn't look like any "standard" file format that I'm aware
of.
00_index files are a standard going way back when and used on a lot of shareware cdroms - mainly the simtel and sunet ones. A quick google search shows multiple sites that hold them.
You can see how this would be a problem for to parse: the program/script wouldn't
know if "NOTE:", "Some", "See", and "Directory" were supposed to be filenames or
not.
I could certainly see that, but the line of "equals" (=) signs would be the delimiter for the start of the file names.
Unfortunately with (at least the simtel and sunet cd's i have) a lot of places, they don't have DIZ files in the ZIP files etc. (which i LOVE :D)
You could likely hack something together (see parse_file_list() in exec/addfiles.js
for a starter), but it probably be easier to just write a script in whatever
language you're most familiar, that converts those files into an actual standard
file format, like FILES.BBS, instead.
I'll take a look into it. I'm a JAVA/JS n00b for sure, but maybe i can knock something up
in perl or python :D
I agree that the file *name* 00index or 00_index is somewhat of a standard (commonly
generated for FTP sites), but the file contents are completely adhoc. Here's an exmaple 00INDEX.TXT file from an OS/2 shareware CD circa 1994:
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 12 |
Nodes: | 6 (0 / 6) |
Uptime: | 20:08:09 |
Calls: | 68 |
Calls today: | 2 |
Files: | 50,165 |
D/L today: |
97 files (9,999K bytes) |
Messages: | 279,699 |