Mail Archives: djgpp/2005/01/15/09:15:37
On Sat, 15 Jan 2005 12:08:43 +0200 in comp.os.msdos.djgpp, "Eli
Zaretskii" <eliz AT gnu DOT org> wrote:
>> From: CBFalconer <cbfalconer AT yahoo DOT com>
>> 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
- Raw text -