delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/07/14/22:30:05

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Mon, 14 Jul 2008 21:16:45 -0500
From: "Charles Sandmann" <cwsdpmi AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <I6-dnUDsEJnAOebVnZ2dnUVZ_rPinZ2d AT lmi DOT net>
Subject: Re: Drag and Drop to Command Line
Date: Mon, 14 Jul 2008 21:16:34 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
Message-ID: <BIydnZiyM_MQleHVnZ2dnUVZ_qfinZ2d@earthlink.com>
Lines: 25
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 64.91.192.48
X-Trace: sv3-d15M/Li67PHJsyQhJ8QvDrxOaJAHgshL423jWK4Bt2CVp2mFx6GWHlPBRSPERWPM4xMr+VJ03on0UYq!JK+1VlCpFmLz6O/l9P28vLjMy/Cn3dQvW8X+LBbFRyhPiGAbFfcnBmxbSmv7SkYXgH4g7/AdB86Q!1zH7mmaAZpvAHx4DMdjpy9gAycMqySE=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
X-Original-Bytes: 2248
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Rob Gaddi" <rgaddi AT technologyhighland DOT com> wrote in message 
news:I6-dnUDsEJnAOebVnZ2dnUVZ_rPinZ2d AT lmi DOT net...
> (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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019