| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | dos-man 64 <ChairShot AT mail DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Is there some way to convert long filenames to short filenames? |
| Date: | Fri, 13 Mar 2009 18:13:01 -0700 (PDT) |
| Organization: | http://groups.google.com |
| Lines: | 31 |
| Message-ID: | <f8ebbafd-0d54-4a2e-9349-6f4365b1db2e@q11g2000yqh.googlegroups.com> |
| References: | <275d23ac-69e7-4da0-88a0-a807a182477e AT a39g2000yqc DOT googlegroups DOT com> |
| <gpd54j$kr5$1 AT aioe DOT org> <c8b9dd7a-ced3-4522-9bdd-bc565c607369 AT l39g2000yqn DOT googlegroups DOT com> | |
| <gpetuo$4eu$1 AT aioe DOT org> | |
| NNTP-Posting-Host: | 65.78.101.94 |
| Mime-Version: | 1.0 |
| X-Trace: | posting.google.com 1236993181 20396 127.0.0.1 (14 Mar 2009 01:13:01 GMT) |
| X-Complaints-To: | groups-abuse AT google DOT com |
| NNTP-Posting-Date: | Sat, 14 Mar 2009 01:13:01 +0000 (UTC) |
| Complaints-To: | groups-abuse AT google DOT com |
| Injection-Info: | q11g2000yqh.googlegroups.com; posting-host=65.78.101.94; |
| posting-account=KWQMBgkAAACyIBKFFEyMPc0WiKp5u-pU | |
| User-Agent: | G2/1.0 |
| X-HTTP-UserAgent: | Opera/9.63 (Windows NT 5.1; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Mar 13, 7:35=A0pm, "Rod Pemberton" <do_not_h DOT DOT DOT AT nohavenot DOT cmm> wrote:
> "dos-man 64" <ChairS DOT DOT DOT AT mail DOT com> wrote in message
>
> news:c8b9dd7a-ced3-4522-9bdd-bc565c607369 AT l39g2000yqn DOT googlegroups DOT com...
>
> > The only requirement is I have to set an
> > environment variable LFN=3Dy.
>
> As DJ said, this should be automatic... =A0However, I've also have a few
> programs where I have code force LFN use, if available. =A0This is with D=
JGPP
> v2.03.
>
> #ifdef __DJGPP__
> /* if LFN driver installed, force _USE_LFN on */
> if(lfn_installed)
> {
> =A0 _crt0_startup_flags&=3D~_CRT0_FLAG_NO_LFN;
> =A0 putenv("LFN=3Dy");}
>
> #endif
>
> The variable lfn_installed gets set to one if a __dpmi_int 0x21 call to
> 0x71a0 reports that it supports long filename functions.
>
> Rod Pemberton
I'm going to try these out right now, thanks. Hopefully I can get rid
of this dos environment variable requirement. I can imagine the horror
and disfunctionality if every program relied on dos environment
variables to run correctly, heh. It would be chaos.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |