[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Long filenames in directory; minor update



Here's a new version of a tiny file that reads a directory in a Win95 DOS
box, including long filenames, and puts that information into a XyWrite 4.0
directory. It may work with NT also; not tested there. As before, the
directory that is created is read/write. As before, the program takes
command-line arguments for path and wildcards but will choke on DOS
switches. The DOS directory is sorted; you can change the switch
(currently /o) within the program. If you put the progam on a key, I think
you lose the command-line argument feature. I will eventually port this
into ENHANCE.SET's U2 file with a dedicated command, but it's a bit of work
figuring out command-line arguments in a U2 file. Soon.

(See attached file: Dirlong.pgm)
The new version uses a different name for the temp file that is created and
places it in the XyWrite default DR temp directory. It also deletes the
temp file when it's done. Reasons for using DR: (1) the temp file, which
you don't want to see, won't show up in the directory unless you're logged
into the temp directory, and (2) we know that DR cannot be a read-only
directory, so the temp file can be created there and erased. (In fact,
it's generally a good idea to put temp files someplace where you know you
can write to. DR lets you do it dynamically and not have to make
assumptions about what might not be read-only.)

If you're already using the original DIRLONG.PGM and you're happy with it,
you don't need to bother with this one; the basic operation is the same.

Cheers,
Tim Baehr
tbaehr@xxxxxxxx
tbaehr@xxxxxxxx

Attachment: Dirlong.pgm
Description: Binary data