Mail Archives: djgpp/1997/12/25/02:50:09
On Thu, 25 Dec 1997, Brian Hawley wrote:
> PATH C:\Utilities\bin;C:\BIN;%PATH%
> Put the win32 (console) programs in the Utilities\bin directory and
> the dos programs in the BIN directory. The Utilities directory will
> only be visible as such when in Win95 or NT, but the similarly named
> dos programs in BIN will show up in dos mode.
It is unclear to me why do think this should work on all machines.
Are you relying on "Utilities" to have "UTILIT~1" as its the short 8+3
alias? If so, then this is only true as long as somebody won't set up
their Windows 95 to disable the numeric tails. When somebody does
that, the short name of "Utilities" will be "UTILITIE", and DOS will
happily find the 32-bit version because it silently truncates long
names.
So I'd say this method is only reliable on Windows NT, not on Windows 95.
> I use this to organize my unix clone command line utilities like du
> and zip, automatically using ones with long filename support when
> appropriate.
On Windows 95, if you use `zip' and `du' compiled with DJGPP (`du' is
from Fileutils, v2gnu/fil316b.zip), you can have a single executable
that automagically supports long names when they are available.
- Raw text -