From: rpolzer AT durchnull DOT de (echo 'Rudolf Polzer'>/dev/null) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP Newbie Questions References: <1659-Sat21Apr2001210001+0300-eliz AT is DOT elta DOT co DOT il> X-newsgroup: comp.os.msdos.djgpp X-realname: Eli Zaretskii X-Ringtones: http://ringtones AT durchnull DOT de X-Original: no Message-ID: User-Agent: slrn/0.9.6.3 (Linux) Date: Sat, 21 Apr 2001 20:57:00 +0200 Lines: 36 NNTP-Posting-Host: 213.7.26.146 X-Trace: 987884459 news.freenet.de 29313 213.7.26.146 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > From: "Repugnant" > > 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