X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Mike C" Newsgroups: comp.os.msdos.djgpp Subject: Getting long file names from the 8.3 name passed from Windows Lines: 53 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Sun, 07 Nov 2004 21:44:21 GMT NNTP-Posting-Host: 62.253.115.224 X-Complaints-To: http://www.ntlworld.com/netreport X-Trace: newsfe2-gui.ntli.net 1099863861 62.253.115.224 (Sun, 07 Nov 2004 21:44:21 GMT) NNTP-Posting-Date: Sun, 07 Nov 2004 21:44:21 GMT Organization: ntl Cablemodem News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli, I tried to mail you this, but my mail came back, marked "Undeliverable" I trawled Ralf Brown's list of interrupts today, but I didn't see anything too hopeful. I had expected to see an interrupt to return the long filename, given the file handle - something like that - but I didn't find anything such. As you seem to have been around that area, can you give me any pointers please? Do you have to run a findfirst using a paraphrase of the the 8.3 filename as a source? Many thanks, Mike Collins. ----- Original Message ----- From: "Eli Zaretskii" Newsgroups: comp.os.msdos.djgpp To: Sent: Tuesday, October 26, 2004 5:32 AM Subject: Re: Long file name support > > From: "Mike C" > > Date: Mon, 25 Oct 2004 20:02:31 GMT > > > > The problem is that if the source is > > > > d:\windows folder1\windows folder2\File with a long name.log > > > > then the target file is > > > > d:\window~1\window~2\File w~1.Prs > > This is a misfeature of Windows: when a file is dropped on a DOS > program, it gets a short 8+3 alias of the long file name. > > To work around that, use the subfunction of Int 21h function 7160h > that returns a long variant of the 8+3 short file name. -- WARNING: My e-mail return address is bogus to confuse the automated spam address gatherers. Mental decryption required: mikabel#ntlworld*com where * = 'dot' and # = 'at'