www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/12/11:30:15

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How do I get the msdos "long" (x~1.y) filename when I know the real windows long filename
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <lcisrs00nlas0p2b1hjbme4so0eok7v8pe@4ax.com>
References: <M9lv5.421$Tn3 DOT 8133 AT news010 DOT worldonline DOT dk>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 24
X-Trace: /K0ZEBUAERrYrx+NGMoWaYQzfQ1QQ5Vps5WAnj5SElj0FH5HUea8p1rcvEfhdLPQo319LxtRGyfW!iPvAzgXRoqz6uOMAjxfzwaihb/DOH62Kc8NFFPrfUaMwSKB7DQJjtTLBqrmcLQmzZacTL6TLao8y!M4bHfUo=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 12 Sep 2000 15:21:25 GMT
Distribution: world
Date: Tue, 12 Sep 2000 15:21:25 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 12 Sep 2000 07:44:44 GMT, "Sven-Erik Bak"
<seb AT techno-matic DOT dk> wrote:

>Is there a command that says "get_short(filename)" and returns
>the short filename that is actually used in dos.
>
>I have tried the "_lfn_gen_short_fname();" in the library but
>this is the result
>
>"_lfn_gen_short_fname();"
>                THISISALONG.NAME    ->   THISISAL.NAM
> Dos interpretation
>                THISISALONG.NAME    ->   THISIS~1.NAM

Have you tried Ralf Brown's Interrupt List?  Windows 9x and 2000
have some syscalls to help you out with this.

-- 
MS (n)  1. A debilitating and surprisingly widespread affliction
  that renders the sufferer barely able to perform the simplest
  task.  2. A disease, multiple sclerosis (see).

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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