www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/13/18:50:41

Message-ID: <369D2CB2.93CCCA2E@cadvision.com>
Date: Wed, 13 Jan 1999 16:30:59 -0700
From: Tim Hoskins <hoskinst AT cadvision DOT com>
Organization: Anarchy Inc.
X-Mailer: Mozilla 4.06 [en] (Win95; U)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: LFN in Win95? How do I do it?
NNTP-Posting-Host: 207.228.79.137
X-NNTP-Posting-Host: 207.228.79.137
X-Trace: 13 Jan 1999 16:31:07 -0700, 207.228.79.137
Lines: 76
X-NNTP-Posting-Host: 204.50.1.43
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
--------------62B6E9983CA1A2E0276EC900
Content-Type: multipart/alternative; boundary="------------A501F1873E058CC53208A545"


--------------A501F1873E058CC53208A545
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hey all,
    Although I've been programming with C for several years, I have a
problem dealing with Long File Names in Win95's DOS Box.
Here is a snippet of code.

    if(!_dos_findfirst("*.*", _A_NORMAL, &ffblk))
    {
        printf("%s\n", ffblk.name);
        do while (!_dos_findnext(&ffblk))
            printf("%s\n", ffblk.name);
    }

Can anybody tell me how to get DJGPP to output the filenames as long
file names instead of short ones?

Thanks in advance

Tim Hoskins <hoskinst AT cadvision DOT com>

--------------A501F1873E058CC53208A545
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<TT>Hey all,</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; Although I've been programming with C for several
years, I have a problem dealing with Long File Names in Win95's DOS Box.</TT>
<BR><TT>Here is a snippet of code.</TT><TT></TT>
<P><TT>&nbsp;&nbsp;&nbsp; if(!_dos_findfirst("*.*", _A_NORMAL, &amp;ffblk))</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; {</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf("%s\n", ffblk.name);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do while (!_dos_findnext(&amp;ffblk))</TT>
<BR><TT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
printf("%s\n", ffblk.name);</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; }</TT><TT></TT>
<P><TT>Can anybody tell me how to get DJGPP to output the filenames as
long file names instead of short ones?</TT><TT></TT>
<P><TT>Thanks in advance</TT><TT></TT>
<P><TT>Tim Hoskins &lt;hoskinst AT cadvision DOT com></TT></HTML>

--------------A501F1873E058CC53208A545--

--------------62B6E9983CA1A2E0276EC900
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Parental Advisory
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Parental Advisory
n:              Advisory;Parental
org:            Anarchy Inc.
adr:            RR#2;;;Crossfield;Alberta;T0M 0S0;Canada
email;internet: hoskinst AT cadvision DOT com
title:          Head Honcho
tel;work:       (403) 946-4220
tel;fax:        (403) 946-4220
tel;home:       (403) 946-4220
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:        2.1
end:            vcard


--------------62B6E9983CA1A2E0276EC900--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019