Re: Drag and Drop to Command Line



"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.


.



Relevant Pages

  • Re: The case insensitive #include statement horror...
    ... like the case-insensitivity of the Windows file system, ... it's more like asking the programmer switching case sensitivity in their ... It enlarges the namespace of possible filenames... ... If there really were no reason to have upper ...
    (microsoft.public.vc.language)
  • Re: Got it working, kind of. was Re: Adding network and internet to Warp 4
    ... Windows Explorer and I see long filenames. ... from an OS/2 window, ... Advanced install when I installed it, and I don't remember there being ...
    (comp.os.os2.misc)
  • Re: Got it working, kind of. was Re: Adding network and internet to Warp 4
    ... Windows Explorer and I see long filenames. ... Firefox ver 3 shows up as Firefox_.zip. ... Advanced install when I installed it, and I don't remember there being ...
    (comp.os.os2.misc)
  • Re: Finding short file names?
    ... >Windows XP has migrated well past "short filenames". ... When someone does a copy or xcopy of the system partition, the SFNs ... "Shell Extensions" if you have some programming chops and patience. ...
    (microsoft.public.windowsxp.general)
  • Re: XP exec background process
    ... On DOS and Windows systems... ... When working with paths and filenames, ... DOS used to save all paths and filenames as 100% uppercase. ... Passing switches/parameters on the command-line for different commands ...
    (comp.lang.php)