X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.177.20 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: intdos question Organization: Systematic Software Message-ID: <1j8iu0pablngce0n9qubka379nurk84hf7@4ax.com> References: <41E81320 DOT 609028BD AT yahoo DOT com> <01c4faea$Blat.v2.2.2$57538880 AT zahav DOT net DOT il> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 36 Date: Sat, 15 Jan 2005 14:10:35 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw2no 1105798235 24.71.223.147 (Sat, 15 Jan 2005 07:10:35 MST) NNTP-Posting-Date: Sat, 15 Jan 2005 07:10:35 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 15 Jan 2005 12:08:43 +0200 in comp.os.msdos.djgpp, "Eli Zaretskii" wrote: >> From: CBFalconer >> Date: Fri, 14 Jan 2005 18:57:24 GMT >> >> I think you are barking firmly up the wrong tree. The point is >> "why does the drag and drop leave a short file name". There is no >> need for your program to incorporate all sorts of non-standard and >> non-portable code if you can solve that. > >Drag-n-drop produces a short 8+3 file name due to a Windows >misfeature: it always does that when a file is dropped on a DOS >program. > >AFAIK, there's no solution for this misfeature except reconstruct the >long file name the way the OP wanted and Brian's code did. So in this >case, it's definitely the right tree that's being barked up. That's just the default open action for 16 bit programs, but you can change that in the actions for the filetype, as long as you use a unique filetype. Go into Explorer/View/Options/File Types/New file type or pick file type/Edit/Actions/open/Edit/Application/program.exe "%L"/OK/OK/OK The "%L" argument passes a quoted long filename to program.exe. I use this argument for .z/.gz/.t[ag]z/.bz2/.zip/etc. filetypes and gunzip/bunzip2/unzip/etc. list/unzip actions so that the unzipped file has the same (long) prefix as the original instead of xxxxx~1.*z*. I set the default action for those types to list, as I may want to mv the file before unzipping. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply