Mail Archives: djgpp/2001/04/21/16:30:10
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> > From: "Repugnant" <repugnant2k AT hotmail DOT com>
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Fri, 20 Apr 2001 05:34:16 GMT
> >
> > Whats a good Internet resource for programming DOS programs with DJGPP?
>
> Try the User's Guide page of DJ Delorie's server
> (http://www.delorie.com/djgpp/ug/).
>
> > for instance, in Win32 I can call the FindFirstFile function to do a
> > file search, what would the equivalent be in DOS?
>
> Use `findfirst'.
>
> > Also, how do I enable long filename support under DOS?
>
> You need to install a TSR that supports the special LFN API used by
> DJGPP library functions to access long file names. One such TSR is
> mentioned in the DJGPP FAQ list (see section 3.3).
>
> > I'm using Win98 DOS in true DOS mode, not as a command box inside of
> > Windows
>
> Why can't you use a DOS box on top of Windows? Why do you need to go
> to the DOS mode? Staying on Windows would give you long file names
> automatically.
And you have a better chance of not having to reboot after your
application crashes.
--
#!/usr/bin/perl -W -- WARNING: This copies a random file from
use strict;my$s;my$n=0;for # the current directory to your
(<*>){++$n;int rand$n or$s # signature file. Use at your
=$_};`cp $s ~/.signature`; # own risk! (c) 2001 Rudolf Polzer
- Raw text -