Mail Archives: djgpp/1997/01/03/22:38:16
On Friday, in article <32cc9b29 DOT 40887798 AT news DOT mcs DOT net>
locke AT mcs DOT net "Peter Johnson" wrote:
> Actually, there IS a way to access LFN under ANY dos.. I even have a
> utility that displays a directory (dir clone) AND displays LFNs, just
> like under Win95 GUI. The secret: Hacking the filesystem itself.
> There's no API, just 'straight' access. Hmm.. perhaps I should take
> that code, port it to DJGPP, and write a patch for the DJGPP LFN
> functions.. wonder if anyone would be interested in that :)
It's also really quite a dodgy method, and I presume you have to be careful
not to run into the LOCK "feature" for Long Filename Preservation...
:sb) please send mail to <tw104 AT york DOT ac DOT uk> http://www.york.ac.uk/~tw104/
--
#include <stdio.h> /* The .splitbung super .sig system! */
#include <string.h>
main(){FILE*f;int c[1];char s[99];puts("sig:");fgets(s,99,stdin);if(!*c=strchr(s
,'\n'))s[c=0;f=fopen(s,"r");while((c=getc(f))!=EOF)putchar(c);f&&fclose(f)
- Raw text -