Re: Drag and Drop to Command Line
- From: "Charles Sandmann" <cwsdpmi@xxxxxxxxxxxxx>
- Date: Mon, 14 Jul 2008 21:16:34 -0500
"Rob Gaddi" <rgaddi@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:I6-dnUDsEJnAOebVnZ2dnUVZ_rPinZ2d@xxxxxxxxxx
(snip...) I pass it long filenames [from the command line], it works with
long filenames, and creates outputs with long filenames. Fine, perfect,
all well and good.
But when I try to drag and drop from Explorer (under XP) onto the .EXE of
the interpreter, for some reason it gets passed the short file name
instead, and I get the appropriately mangled output file names.
DJGPP executables appear to Windows as a 16-bit DOS executable. Windows
cannot tell if a 16-bit DOS executable supports long file names or only
short file names - so it always assumes the lowest capabilities and sends
the short file name.
Create a file with a .cmd extension (similar to a .bat file, but known to
know about advanced file names). For example, testecho.cmd contains:
c:\djgpp\bin\echo %1
pause
When you drag onto the .cmd file you should get the long file name in the
argument list, which will then be passed as the long name to the DJGPP
executable.
.
- References:
- Drag and Drop to Command Line
- From: Rob Gaddi
- Drag and Drop to Command Line
- Prev by Date: Re: Drag and Drop to Command Line
- Next by Date: Re: Drag and Drop to Command Line
- Previous by thread: Re: Drag and Drop to Command Line
- Next by thread: Re: Drag and Drop to Command Line
- Index(es):
Relevant Pages
|