From: Damian Yerrick 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: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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/