HDTenEightyP/NetNews huggingface dataset:
From: lb00197@Corlac (David Porco)
Subject: Re: HELP: How does one identify a drive as a Novell network drive?
Organization: Lockheed
Date: Fri, 8 Jan 93 16:21:21 GMT

In article <2TP1wB4w165w@cibbs.UUCP> root@cibbs.UUCP writes:

>I am attempting to determine how to look at say teh DOS media descriptor for a
>drive in memory to determine if this is a network drive. I've posted about this
>before and got no response.

>Anyone what to look for? I have used my resources regarding DOS programming and
>they never mention network drives.

>Someone in here once posted that they were able to make a change to the media
>descriptor to make DOS this that a network drive was a hard drive. Obvoisuly
>this is possible, but what would information would one look for determining if
>a drive was on the network, or local?

According to DOS PROGRAMMING by Kris Jamsa, you can use Int 21H function
4409H to determine if the drive, whose number is specified in BL is local
or remote(network).  If the function is successful, it clears the carry flag 
and assigns bit values to DX.  If bit 12 is 0 the drive is local, if bit 12 
is 1 then the drive is remote(network).

>Any informaion regarding this would be appreciated.
>Mark

Hope this helps.
.
 --------------------------------/^\----------------------------------
 The views expressed are my      | |    We make our own reality.
 own, and could change at any    | |
 moment.                         | |     )))))   )   )  ) ))))
 --------------------------------| |      )   )  )))  ) )  )))
 David V. Porco                  | |      ))))   )  )  )    ))))
 Systems Programmer              | |    Certified Netware Engineer
 --------------------------------| |----------------------------------
Newsgroups: comp.os.msdos.programmer
From: eduard@htsa.aha.nl (Eduard Beijnes)
Subject: Re: Normal MSDOS multitasking!
Date: Fri, 8 Jan 1993 14:14:20 GMT
Organization: Hogeschool van Amsterdam, The Netherlands, E.E. & C.S. Dept.

Talking about multitasking:

when i format a: and b: together under windows (3.1) via ms-dos format.xxx
and format.xxx is writing the boot-sectors the 'proces' stucks
'lang leve' de non-reentrancy of dos !

I think unix has no problems with it (I can't test it)

example of multitasking:

formatting drive a: & b:
compressing a big file on your harddisk
downloading software from a BBS
writing this text while printing two different files on two printers
From: rol@grasp1.univ-lyon1.fr (Paul Rolland)
Newsgroups: comp.os.msdos.programmer
Subject: Yacc & Lex
Date: 8 Jan 93 16:58:54 GMT
Followup-To: comp.os.msdos.programmer
Organization: Apple Computer Europe

I'm looking for a good implementation of Lex and Yacc on a PC system.
It has to be able to run on an old 8086 with 512 Kb RAM and DOS 3.2.
I know GNU has ported them, and that GNU yacc is called Bison. What about
GNU Lex ?

Could somebody tell me if they are good (I mean, similar to Unix release,
with few limitation) ? If not, is there other one that I can use ?

Thanks in advance,

Paul Rolland

A bug can be changed to a feature by documenting it. Developpers know !
From: jmeyers@ecst.csuchico.edu (Jeff Meyers)
Newsgroups: comp.os.msdos.programmer
Subject: How to change video modes??
Date: 7 Jan 93 08:40:05 GMT
Organization: California State University, Chico
NNTP-Posting-Host: psycho.ecst.csuchico.edu

OK, here's the situation: I have two monitor (VGA and mono) and want to write
a TSR that will display text on the mono monitor without disturbing the
VGA screen.

I have tried using BIOS interrupt 10, function 00 (set video mode).  This will
work when changing modes to anything but 7 - the one I need.  It switches to
mode 0 when I try this.

I need to be able to do three things: clear the mono screen, write text to
it, and scroll up one line.  As usual, I would like the easiest and most
efficient method - other than writing directly to video memory.

Any suggestions?  Do I need to do something else to change video modes with
the above listed BIOS call?

Please e-mail me...

Thanks!

-- 
============================================================================
| Jeff Meyers      |  jmeyers@ecst.csuchico.edu      | 39x43'N  121x48'W   |
| Chico, Ca 95926  |  KD6DIS@KE6LW.#NOCAL.CA.USA.NA  | Grid: CN80-CM99 ??  |
============================================================================
From: kjhoule@iowegia.uucp (Kevin Houle)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Turbo C++ 3.0 under DOS, I got a real simple (hopefully) questio
Date: Sat, 09 Jan 93 18:32:27 CST
Distribution: world
Organization: Iowegia Public Access Usenet/UUCP, Clive IA USA.

olw7845@zeus.tamu.edu (Zeke E. Pez) writes:

> I can compile with all the headers but I cannot Link my code from within
> the I.D.E. because the linker does not know the name of the non-TC++ LIB.

Well, I use Borland C++ 2.0, and was able to link external libraries
by including the libraries in the project file list.


--
Kevin Houle     kjhoule@iowegia.uucp
Newsgroups: comp.os.msdos.programmer
From: brown@NCoast.ORG (Stan Brown)
Subject: Re: comp.os.msdos.programmer FAQ part 4 of 4
Organization: Oak Road Systems, Cleveland Ohio USA
Date: Thu, 7 Jan 1993 16:10:50 GMT

In article <msdos-faq.930106.4@NCoast.ORG> brown@NCoast.ORG (Stan Brown) writes:
>Archive-name: msdos-programmer-faq/part4
>Last-modified: 1993 Jan 6

>QC02. Are there any good on-line references for PC interrupts?
>
>    The definitive work is Ralf Brown's interrupt list, which is packed
>    with information on documented and (officially) undocumented BIOS
>    and DOS interrupts, DOS tables, and interrupts hooked by many
>    software packages.
>
>    The interrupt list comes from CS.CMU.EDU [128.2.222.173] in
>    /afs/cs/user/ralf/pub (switch there with a *single* command) as
>    inter32a.zip, inter32b.zip, and inter32c.zip.  At Simtel it's in
>    PD1:<MSDOS.INFO>INTER32A.ZIP, INTER32B.ZIP and INTER32C.ZIP (about
>    805K before un-ZIPping).  At garbo it's in /pc/programming as
>    inter32a.zip, inter32b.zip, and inter32c.zip.  These versions were
>    uploaded in mid-September 1992; updates are announced in
>    comp.archives.msdos.announce every few months.

As of January 1993, these are level 33 not level 32.

-- 
Stan Brown, Oak Road Systems                      brown@Ncoast.ORG
Cleveland, Ohio, USA
Newsgroups: comp.os.msdos.programmer
From: jkenton@world.std.com (Jeff Kenton)
Subject: Re: How to change video modes??
Organization: Kenton Systems Corporation, Weston MA
Date: Fri, 8 Jan 1993 02:41:37 GMT

jmeyers@ecst.csuchico.edu (Jeff Meyers) writes:

>OK, here's the situation: I have two monitor (VGA and mono) and want to write
>a TSR that will display text on the mono monitor without disturbing the
>VGA screen.

>I need to be able to do three things: clear the mono screen, write text to
>it, and scroll up one line.  As usual, I would like the easiest and most
>efficient method - other than writing directly to video memory.

>Any suggestions?  Do I need to do something else to change video modes with
>the above listed BIOS call?

Do the VGA stuff the normal way, and write directly to video memory for mono.


-- 
-------------------------------------------------------------------------
=			Jeff Kenton	(617) 894-4508			=
=			    jkenton@world.std.com			=
-------------------------------------------------------------------------
Xref: sparky comp.os.msdos.programmer:11972 comp.sys.ibm.pc.programmer:765 comp.lang.c++:18923 comp.lang.c:19525
From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.programmer,comp.lang.c++,comp.lang.c
Subject: Re: Newbie Wants Advice on C-Programming
Keywords: turbo c++ IDE manuals documentation
Date: Sun, 10 Jan 93 21:16:12 CST
Organization: Villa CyberSpace, Minneapolis, MN

rweaver@research.otc.com.au (Richard Weaver) writes:

> KhoGuan PhuaN  (kgphuann@uz.nthu.edu.tw)  suggests that
> Turbo C++ comes with one, inadequate manual.
> 
> My secondhand Turbo C++ came with TWO (2) manuals.
> 
> These are: 	( a )   User's Guide,  and
> 		( b )   Programmer's Guide
> 
> I think that, sadly, KhoGuan PhuaN has bought an incomplete product.

And I think that Borland is simply continuing the tradition begun with
the second release of TC++.  My copy (TC++ 1.01) has 4 manuals:  Getting
Started, User's Guide, Programmer's Guide and Library Reference.  When I
went to buy TC++, I noticed the difference between the first and second
editions, and I asked the salesman at Software, Etc. to show me the
difference.  Once I saw, I purchased the first edition.

I've heard from Borland that they "rolled the documentation into the
online system", and that appears to be the case.  But I find it hard to
leaf through online documentation while the computer is doing a 25
minute rebuild.
--
Roy M. Silvernail --  roy%cybrspc@cs.umn.edu - OR-  cybrspc!roy@cs.umn.edu
                   "I'm a family man, model citizen."
                                      -- Warren Zevon
From: boggs@a.cs.okstate.edu (BOGGS RICHARD GRAN)
Subject: CTask 2.2
Organization: Oklahoma State University, Computer Science, Stillwater
Date: Sun, 10 Jan 93 06:19:45 GMT

Has anyone out there done anything with CTask 2.2, the PD multitasking kernel
for MSDOS?  I guess with Windows NT coming out, you really don't have to mess
with mutlitasking DOS, but...

Just curious to find out if anyone's used it.  I've successfully compiled it
under BC++ 3.0, but BC++ 3.1 fails to make it.  I believe the culprit to be
TASM 3.1 (the C modules compile fine) not expanding macros correctly (or, at
least not the way TASM 3.0 does!).

Any CTask users out there?

-- 
Grant Boggs
boggs@a.cs.okstate.edu
Oklahoma State University
Stillwater, Oklahoma
Newsgroups: comp.os.msdos.programmer
From: brown@NCoast.ORG (Stan Brown)
Subject: Re: findfirst() for nested directories
Organization: Oak Road Systems, Cleveland Ohio USA
Date: Sat, 9 Jan 1993 14:59:59 GMT

In article <009664F4.AC5D6C80@Msu.oscs.montana.edu> gcp1815@Msu.oscs.montana.edu writes:
>How do I recognize/list the directory headings nested within
>some arbitrary direcory? (using Borlandc C++).
>	Findfirst() and findnext(), using them as per the 
>"topic example" provided by borland, only seems to recognize
>filnames. Is there some ffblk.d_name to refer to?

Use FA_DIREC in the attribute argument.  This will give you all normal
files _and_ directories.  Then you look at the attributes of each
returned file to see whether it's a directory.
-- 
Stan Brown, Oak Road Systems                      brown@Ncoast.ORG
Cleveland, Ohio, USA

"Life!  Don't talk to me about life!"
From: adam@micromuse.co.uk (Adam Kerrison)
Newsgroups: comp.os.msdos.programmer
Subject: Re: question on spawning DOS from C prog
Date: 6 Jan 93 13:01:36 GMT
Reply-To: adam@micromuse.co.uk
Organization: MicroMuse Ltd

In article 57639@ns1.cc.lehigh.edu, jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO) writes:
> 
> For example, after spawning DOS the user would
> see:
> 
>             <Type EXIT to return to program>      <--this would appear
>                                                      each time <RET> hit
>             C:\
> 
>     Is there, perhaps, a parameter to COMMAND.COM to do this?

I dont think so. You can do this by setting the prompt correctly. I don't think
you can have a newline in a prompt so you would need lots of spaces (a bit wasteful
but such is DOS :-) ). Try something like this:

PROMPT=Type EXIT to return to program {.. lots of spaces ..} $p$g

> 
>                                                 - John
Adam
===========================================================================
Adam Kerrison                  | Phone : +44 71 352 7774
Technical Support              | Fax   : +44 71 351 7834
MicroMuse Ltd                  | Personal E-mail: adam@micromuse.co.uk 
London SW10 0RN                | Support E-mail : support@micromuse.co.uk 
===========================================================================
Newsgroups: comp.os.msdos.programmer
From: davet@cbnewsj.cb.att.com (Dave Tutelman)
Subject: Re: Fortran Grammar...
Organization: AT&T Bell Labs - Lincroft, NJ
Date: Mon, 11 Jan 1993 12:44:51 GMT
Summary: There IS a free MSDOS Fortran

In article <C0M1Cw.8zv@ireq.hydro.qc.ca> beaurega@ireq.hydro.qc.ca (Denis Beauregard) writes:
>In article <9301094599@fcshome.UUCP> fredex@fcshome.UUCP (fred smith) writes:
>>Denis Beauregard (beaurega@ireq.hydro.qc.ca) wrote:
>>: ... [ attribution lost ] ... wrote:
>>: >Do you know of a document that presents the grammar of the Fortran
>>: >language ? I have the compiler, but no documentation, and I don't know
>>: >what to do...
>>
>>: What about buying a legal copy?
>>
>>Yes. However, some of us have fortran tools such as Bellcore's f2c
>>fortran to C converter which comes with a nice man page describing the
>>compiler options, but assumes you already know F77. 
>
>Maybe, but the original poster is talking about a compiler, not a converter,
>and I don't know any compiler sold without documentation.
>I meant here (see the newsgroup line) for the MS-DOS world....

Gee, and it's just a week since I posted my summary of the cheap/free
Fortrans for MSDOS in this very newsgroup.  Try an archive site near you
for BCF7713B.ZIP, a completely freeware FORTRAN (restricted to non-military
applications).

My guess is that the original poster is using this Fortran 77, which comes
with about 8 pages of compiler/linker docs, but nothing about the language.
I had the same problem.  I haven't written a Fortran program in over 20
years (and F77 is somewhat different, and better, than the old Fortran 2
that I used).  I had to go to my kids for manuals; both of them have good
manuals, textbooks they have acquired in various courses.

On the plus side, there are LOTS of books (probably several in your
engineering library) on Fortran 77.  It's hardly an obscure language.

>Anyway, you can continue the work of a predecessor who lived with the docs,
>so I give the benefits of doubt to the original poster.

That's big of you, but there's a much simpler explanation.

Dave
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer,rec.games.programmer
From: pynq@quads.uchicago.edu (Jeremy Mathers)
Subject: Re: Need help with Phar Lap DOS Extender and assembly
Reply-To: pynq@midway.uchicago.edu
Organization: D. J. Dougherty & Associates
Date: Mon, 4 Jan 1993 19:13:54 GMT

In article <1993Jan4.161144.28122@aristo.tau.ac.il> akugel@genius.tau.ac.il (Alexander Kugel) writes:
>>...
>>The real reason I am posting is to recommend a different compiler, GCC from
>>the Free Software Foundation.  It comes with a dos extender that supports
>>...
>>the driver handles paging through video memory, etc.  The DOS port of GCC is
>>called djgcc, and is available from barnacle.erc.clarkson.edu in
>                                     ^^^^^^^^^^^^^^^^^^^^^^^^^
>>pub/msdos/djgcc.  use anonymous ftp, login anonymous, password anything

Use:

	ftp.math.niu.edu:/pub/msdos/djgpp.stuff

instead.

Incidentally, I have noticed that this one doesn't seem to be on the
most recent list of mirror sites that DJ recently posted to the mailing list.
I wonder why...

************************************************************************
BLISS is ignorance

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
Newsgroups: comp.os.msdos.programmer
From: mikee@seas.gwu.edu (Mike Me)
Subject: Possible bug in Borlandc Turbo Vision 3.1
Organization: George Washington University
Date: Mon, 11 Jan 1993 00:55:22 GMT

This is a posible bug under Borland C 3.` Turbo Vision.

If you swithc into any graphics mode, and afterwards try to use
a Turbo Vision type of thing, the MOUSE cursor will NOT show up. It does work,
but the cursor is NO-WHERE to be found.

If you do not switch into graphics mode 1st, it works just fine.

Can anyone colaborate this?

I am currently using my portable and do not have my books handy.
I'll check them on M-day though to see if Borland says anything about
this..


Should one contact Borland about something like this?
what is proper procedure (or is there one?)

Thanx,
	MikeE
From: sverrehu@ifi.uio.no (Sverre H. Huseby)
Newsgroups: comp.os.msdos.programmer
Subject: Bug in Borland C++ & AF 3.1 ???
Date: 7 Jan 93 13:46:59 GMT
Organization: Dept. of Informatics, University of Oslo, Norway
Originator: sverrehu@holmenkollen.ifi.uio.no


Does anybody know anything about this?
Please email any responses to me!

--- CUT ---

/**************************************************************************
 *
 *  File: INLINE.CPP
 *
 *  Written by:
 *    Sverre H. Huseby
 *    Bjoelsengt. 17
 *    N-0468 Oslo
 *    Norway
 *
 *    sverrehu@ifi.uio.no
 *
 *
 *  Possible bug in Borland C++ & AF v3.1 when expanding two calls
 *  to the same inline function in one statement.
 *
 *  Compiled with
 *
 *    BCC inline.cpp
 *
 *  with TURBOC.CFG containing
 *
 *    -IC:\BORLANDC\INCLUDE
 *    -LC:\BORLANDC\LIB
 *
 *  The statement
 *
 *    tmp = Stk.Pop() + Stk.Pop();
 *
 *  in main() pops the first number twice, since the inline expansion
 *  starts with _two_ dec of the stackindex.
 *
 **************************************************************************/



#include <stdio.h>



#define STACK_SIZE 10           // Max number of elements on the stack.

class Stack {

    int Element[STACK_SIZE];    // The stack itself.
    int SP;                     // Stack Pointer. Index to next free pos.

  public:
    Stack() { Clear(); };

    void Clear()     { SP = 0; };
    void Push(int x) { Element[SP++] = x; };
    int  Pop()       { return Element[--SP]; };
};


void main()
{
    Stack Stk;
    int   tmp;


    Stk.Push(2);
    Stk.Push(5);
    tmp = Stk.Pop() + Stk.Pop();
    printf("2 + 5 = %d", tmp);  // Gives: 2 + 5 = 4
}


/**************************************************************************
 *
 *  From INLINE.ASM compiled with
 *
 *    BCC -S inline.cpp
 *
 *  (the asterisk (*) and the exclamation point (!) are added `manually')
 *
 *    ;
 *    ;        tmp = Stk.Pop() + Stk.Pop();
 *    ;
 *         dec     word ptr [bp-4]
 *       * dec     word ptr [bp-4]
 *         mov     bx,word ptr [bp-4]
 *         shl     bx,1
 *         lea     ax,word ptr [bp-24]
 *         add     bx,ax
 *         mov     ax,word ptr [bx]
 *       ! mov     bx,word ptr [bp-4]
 *         shl     bx,1
 *         lea     dx,word ptr [bp-24]
 *         add     bx,dx
 *         add     ax,word ptr [bx]
 *         mov     word ptr [bp-2],ax
 *
 *  The second dec (*) should (if I understand this correctly) have been
 *  moved to before the line with a ! in the front.
 *
 **************************************************************************/
From: @arrakis.denver.co.us (Bob Hood)
Newsgroups: comp.os.msdos.programmer
Subject: Is there a util to record and play back keystrokes ?
Distribution: world
Date: Sun, 03 Jan 93 15:47:34 GMT
Organization: Bob's Programming Paradise
Reply-To: thor@arrakis.denver.co.us

In article <58192@dime.cs.umass.edu> shri@unreal.cs.umass.edu writes:
>
> Hi,
>
>   Pardon me if this is not appropriate for this group.
>
>  I am looking for a utility that will record key strokes at the
> lowest possible level (close to the INt 9 keyboard interrupt), and
> should play them back ... and importantly must preserve the timing
> between the keystrokes. I sure I would not have to reinvent this
> wheel !
>
>   PLease E-mail (shri@legato.cs.umass.edu) since I dont read this
> group regularly.
>
> Many thanx.
>
> -- shrikumar ( shri@legato.cs.umass.edu )
>
>

I have a TSR utility, called "Replay", that I wrote for my own use.  The only 
thing it lacks is the ability to read and write the keystrokes you create, and 
there is a setting to capture Mouse cursor movements that I have not 
implemented.

Among other features, it provides named macros for function keys F1-F10, 
delayed replay of keystrokes until a specific date/time, and the ability to 
preserve the delays between keystrokes.

Because the program is over 1,000 lines of code, I will send it, via email, to 
anybody who wishes a copy.  It was written for Borland C++ 2.0, and uses only 
library calls from the run-time library (no third-party libraries are 
required).

Although it is a copyrighted program, I allow free and unrestricted personal 
use of the code.

Caveat Emptor:  Since I wrote this for my own use, don't *expect* support (you 
can ask nicely, though).  There is also *no* documentation for the program.  
Read the source.

Bob
---
Bob Hood   thor@arrakis.denver.co.us      H: 303-986-7127   W: 303-623-2180
-----------------------------------------------------------------------------
                  I'm not an expert, but I play one at work....

From: franks@hpuamsa.neth.hp.com (Frank Slootweg CRC)
Date: Mon, 11 Jan 1993 15:01:46 GMT
Subject: Re: Re: batch question
Organization: Hewlett-Packard, The Netherlands
Newsgroups: comp.os.msdos.programmer

spencer@cats.ucsc.edu (Michael Spencer) writes:

>Gary_Angove@abcd.Houghton.MI.US (Gary Angove) writes:
>
>>I would like to use a batch program from the AUTOEXEC that would preform a
>>particular task dependant on the date.  
>>Such as, ...
>>.........IF CURRENT DATE IS EQUAL TO (SOME DATE) DO....
>>Can this be done through the AUTOEXEC?     HELP!!!!
>
>
>Unfortunately, the answer is NO
>	because batch files cannot effectively access the time program.

  I do not agree. First of all since the *time* program is of little use
for determining the *date* :-) and secondly because batch files *can*
effectively access the date program, as is shown in my below posting
(which was accidently posted to comp.sys.ibm.pc.programmer as a response
to the, probably also accidental, posting of Gary Angove to that
obsolete group) :

From franks Fri Jan  8 10:51:25 1993
From: franks@hpuamsa.neth.hp.com (Frank Slootweg CRC)
Date: Fri, 8 Jan 1993 09:51:25 GMT
Date-Received: Fri, 8 Jan 1993 09:51:25 GMT
Subject: Re: batch question
Organization: Hewlett-Packard, The Netherlands
Newsgroups: comp.sys.ibm.pc.programmer

  *Part* of the solution (i.e. how to get the current and desired dates
in two files) :

  Earlier:

echo. | date >desired

  Note: *No* space between "echo" and the dot (.). The "echo." construct
is a little known feature. Note that "echo | date >desired" (i.e.
without the dot) will not work and will hang your system.

  In autoexec.bat:

echo. | date >current

  Next you want to compare the files "current" and "desired" and want to
make a decision (IF statement) on whether they are equal or not. This is
easy with a MS-DOS clone of the UNIX cmp(1) command (like the one in the
MKS toolkit) , but I could not find a solution with either COMP or FC
combined with FIND. If FIND sets an ERRORLEVEL (I do not have the manual
handy), then you can use

fc current desired | find "FC: no differences encountered"

and do an IF on the ERRORLEVEL returned by FIND.

  Hope this helps.

Frank Slootweg
From: johnboyd@ocdis01.UUCP (John Boyd)
Newsgroups: comp.os.msdos.programmer
Subject: Re: vi clones for pc
Date: 8 Jan 93 14:37:44 GMT
Organization: Tinker Air Force Base, Oklahoma

In article <C0HpH5.Ls6@NCoast.ORG> brown@NCoast.ORG (Stan Brown) writes:
>In article <1993Jan6.150753.24075@news.acns.nwu.edu> scottb@casbah.acns.nwu.edu (Scott Buchholz) writes:
>>
>>Any suggestions?
>
There's also CALVIN21.
----------------------------------------------------------------------------
'Oklahoma, where the legislature runs without a brain' - with apologies to
  Rodgers and Hammerstein
Disclaimer: If you ask the Air Force, they'll tell you I don't know what
             I'm talking about anyway.
Newsgroups: comp.os.msdos.programmer