HDTenEightyP/NetNews huggingface dataset:
From: handbook@orion.oac.uci.edu (Handbook)
Newsgroups: comp.os.msdos.programmer
Subject: Auto-logon script files
Date: 28 Aug 92 17:07:38 GMT
Organization: University of California, Irvine

Hi,

I'm curious to know how auto-logon scripts for communications software
work.  By this I mean after logging into some remote host and "handing
over" control to that machine, how does your local machine know when
to send over your login name, password, etc.?  

How is it done using a COM port? (like when using a modem) and, how might it 
(or is it) done with an Internet connection, using a pc with an ethernet card 
using ncsa telnet?  Are the concepts the same, be it a COM port or a network
card?

I'm interested in the programming level of the communications software,
not how to write a logon script.

Any comments, advice or references to books or articles are appreciated.

Thanks,

Tony

Anthony Toyofuku
University of California,
Irvine
From: rvs@parst1.UUCP (Roelof van Suilichem)
Newsgroups: comp.os.msdos.programmer
Subject: Re: counting keystrokes
Date: 3 Sep 92 17:19:44 GMT
Organization: Paradigm Systems Technology

In article <1992Aug25.141521.17854@ucunix.san.uc.edu> edavis@ucunix.san.uc.edu (Ellen Davis) writes:


>       I am posting this for my husband.  He needs to be
>able to count how many keystokes were pressed when using
>WordPerfect.  (His boss wants to see how much work the 
>secretaries are doing.)  Any suggestions (and source) are
>very much welcomed.  Thanks in advance.


(sing-song voice): .....Big Brother is WATCHING you...!!
Your husband's boss is sick.  You check how much work people are doing
by helping them set work goals, and checking if these goals get achieved.

Politics aside, I don't think this scheme will work anyway, because a
lazy person will sit with a thumb/book on the spacebar for half an hour
while doing something else.  It will also look as if the inaccurate typing
person does more work (more backspaces).

/*------------------------------------------------*\
| Roelof J. van Suilichem | Email: rvs@parst1.uucp |
|-------------------------| Snail: P. O. Box 75026 |
| Typing in Email msgs    |        Lynnwood Ridge  |
| also scores me points   |        0040            |
| on the key counter...   |        South Africa    |
\*------------------------------------------------*/
From: wagner@main.mndly.umn.edu (Rick Wagner)
Newsgroups: comp.os.msdos.programmer
Subject: Borland C++ calling XMS Driver
Date: 28 Aug 92 01:10:09 GMT
Organization: the Minnesota Daily (U of MN Student Newspaper)


I'm using Borland C++ v3.1 and I'm trying to interface to the XMS driver.  
Straight from the interrupt list this is what I have to do.

Set AX=4310h and INT 2F.  This will return the address of the XMS
driver in ES:BX.  I can call this function with an INT86x and get the 
address returned (confirmed) but I can't figure out how to call the XMS 
driver at ES:BX.  I read the longjump stuff in the manual and I'm now 
totally confused.

If anybody can give me some hints how to call this when ES and BX are stored 
in seperate variables it would be most appreciated.

BTW: before the call to the XMS driver, BL must be set to 0, and AH is set 
to 08h.  The function returns the amount of XMS in AX.

Thanks.
Rick Wagner
wagner@main.mndly.umn.edu
Xref: sparky comp.os.msdos.programmer:8989 comp.os.msdos.misc:5003
From: Ross Ridge <ross@zooid.guild.org>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
Subject: Re: Why ms-dos is non reentrant
Date: Wed, 2 Sep 1992 06:53:15 GMT
Organization: ZOOiD BBS

kennu@mits.mdata.fi (Kenneth Falck) writes:
>So, the question remains, why don't the Microsoft programmers bang
>their brains together and rewrite MSDOS to be fully re-entrant and
>all the routines to use dynamic memory allocation instead of static?

Well the reasons why this wasn't done for MS-DOS 5 and earlier releases
is fairly straight forward:

	a) MS-DOS is a single-user, single-tasking operating system
	b) MS-DOS is big enough as it is

For MS-DOS 6, if it ever comes about, I could see a complete rewrite
of MS-DOS in C, supporting full re-entrency and other wonderful stuff.
It of course would only run on a '286 or better, and require a couple
of megabytes of memory.  Not suprisingly it would look at a lot like
OS/2 (once known internally at MS as DOS 5).

							Ross Ridge

-- 
Ross Ridge - The Great HTMU					     l/	 //
								    [OO][oo]
ross@zooid.guild.org						    /()\/()/
uunet.ca!zooid!ross						     db	 //
From: fsrms@acad3.alaska.edu (....FINGERS....)
Newsgroups: comp.os.msdos.programmer
Subject: Communicating Databases
Date: 29 Aug 92 17:22:00 GMT
Organization: Paranoia DikuMud
News-Software: VAX/VMS VNEWS 1.41.UAC

This is my first posting, and might be in the wrong group, but here goes.

What I am looking for is a way to setup my IBM compat to be able to answer my 
incoming phone calls, and allow people to enter stuff into a database.  I use 
my computer for making massive orders, and was looking for a way to allow
people to enter their orders directly.	
	Any ideas would be Appreciated.
Newsgroups: comp.os.msdos.programmer
From: Ross Ridge <ross@zooid.guild.org>
Subject: Re: Results of the smallest TSR contest
Organization: ZOOiD BBS
Date: Tue, 1 Sep 1992 21:24:08 GMT

beaurega@ireq.hydro.qc.ca (Denis Beauregard) writes:
>In the category : HLL with Assembly
>  Ross Ridge
>  64 bytes for a TSR counter
>
>Note : I have no Borland compiler on hand.  But, statements like
>#define get_strategy() (_AX=0x5800, INT21(), _AX)
>looks like inline functions.  What is doing _AX=0x5800 ?  Compiling
>this into "mov ax,$5800" ?  If true, this is inline!

No it's not.  _AX=0x5800 isn't assembler, it doesn't even look
like assembler.  But it was only used for convience, these functions
could easily have been written (more portability) like this:

	int
	get_strategy(void) {
		union REGS regs;

		regs.x.ax = 0x5800;
		intdos(&regs, &regs);
		return regs.x.ax;
	}

The only use of register pseudovariables that's required is at the
start of the isr funtion:

	_DS = _CS;

Again this isn't assembler, you can't even do that in assembler, as
"mov ds,cs" is illegal.  The compiler is has to take the statement,
expressed in C, of "assign the code segment register to the data 
segment register" and translate it into assembler.  It even has
a view choices of how to do this:

	push cs
	pop ds
or...
	mov ax,cs
	mov ds,ax

In the latter case it could use bx, cx, or dx instead of ax.  Maybe
si and di too, I dunno, I don't care.  I'm no 8086 assembler wiz,
in fact when I first used a statement like "_ES = _DS;" I didn't
even realize that it couldn't be translated into assembly as
one statement.

>My own entry : doing the key swapper in HLL + Inline.
>Let's presume I use the same loader as Ross' program.
>The result would give 48 bytes.  Compare with 160 bytes without assembly.
 
My loader can't create an TSR less than 64 bytes including the MCB because
parts of the new PSP are modified by MS-DOS while setting it up.

							Ross Ridge

-- 
Ross Ridge - The Great HTMU					     l/	 //
								    [OO][oo]
ross@zooid.guild.org						    /()\/()/
uunet.ca!zooid!ross						     db	 //
Newsgroups: comp.os.msdos.programmer,comp.lang.pascal,comp.lang.c
From: kushmer@bnlux1.bnl.gov (christopher kushmerick)
Subject: Tech Journal OS
Organization: Brookhaven National Laboratory
Distribution: na
Date: Sat, 29 Aug 1992 16:13:08 GMT

Several Years ago, PC Tech Journal published code for a multiple thread
programming System, I think called TJOS. This allowed programs
to spawn multiple threads of program execution.

Does anybody have the reference?

Has the implementation ever been posted or put in an FTP site?

-- 
Chris Kushmerick
kushmer@bnlux1.bnl.gov
From: egg@dstos3.dsto.gov.au
Newsgroups: comp.os.msdos.programmer
Subject: Efficient byte/word mirroring request
Date: 28 Aug 92 14:34:05 GMT
Organization: Defence Science and Technology Organisation

Does anyone know how to quickly and efficiently mirror a byte.
ie
    11001010 to 01010011

the only way I know is this

   mov  al,byte_to_shift
   mov  cx,8
ShiftLoop:
   rcr  al
   rcl  ah
   loop ShiftLoop
   mov  shifted_byte,ah

There must be an easier (and smarter) way to speed this up using logical
op's perhaps ?
Any Help appreciated.

Themie Gouthas
egg@dstos3.dsto.gov.au
Newsgroups: comp.os.msdos.programmer
From: kennu@mits.mdata.fi (Kenneth Falck)
Subject: Re: The Box-Drawing Charachters
Organization: Microdata Oy, Helsinki, Finland
Date: Mon, 31 Aug 1992 18:47:26 GMT

In article <5265@krafla.rhi.hi.is> indridi@krafla (Indridi Bjornsson) writes:
>
>
>      Hi :-)
>
>   Can anybody tell me if there should be some intellegent 
>order for the ASCII Box-Drawing Charachters (that is ASCII B3h-DAh)
>and if so how are the ordered?

You know, it'd be interesting to find any intelligent order for
the entire extended IBM ASCII character set... The characters
seem to be organized by groups of 32's, but there are still
some very strange symbols among the accented characters, and
you can't even dream of finding some sort of organization 
inside these groups. (I wonder why they included only some
characters of the Greek alphabet etc...)

-- 
kennu@mits.mdata.fi

Newsgroups: comp.os.msdos.programmer
From: messina@netcom.com (Tony Porczyk)
Subject: Re: Novice question: how to boot from a bat file?
Date: Sun, 30 Aug 92 07:36:20 GMT
Organization: Messina Software

sue@byron.u.washington.edu (Shu-Chen Eclipse) writes:

>My problem is I don't know how to emulate the cntry-al-delete boot that
>the user would normally type in to have these new files take effect.

Since it seems to be a twice-a-week question, here is a uuencoded program
that will do it:

begin 666 reset.com
1ND``CMJ[<@#'!S02Z@``__\`
`
end


It's not too long :-), after uudecoding it should be 17 bytes long.

Xref: sparky comp.os.msdos.programmer:8898 alt.msdos.programmer:2291 comp.lang.c:13008 comp.lang.c++:13082
From: roy%cybrspc@cs.umn.edu (Roy M. Silvernail)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer,comp.lang.c,comp.lang.c++,comp.sys
Subject: Re: Question: Forcing BC++ to compile a module
Date: Sun, 30 Aug 92 13:45:53 CDT
Organization: Villa CyberSpace, Minneapolis, MN

Hannu.Nyman@hut.fi (Hannu Nyman) writes:

> I would like to force Borland C++ IDE compiler to compile a module
> every time I do a 'make' in IDE, regardless of the last modification
> date of that module.
> 
> So, when I change any module and do a 'make' inside IDE, I would like
> BC to compile not only the changed module(s), but also this one
> special module.
> 
> Does anybody know a switch or compiler directive that does the job?

Assuming your special .obj is in the main list of dependancies, a rule
with no dependancies should do it.

special.obj:
    $(CC) $(CFLAGS) $*

--
Roy M. Silvernail --    [my machine ] "Sometimes, you're the windshield....
roy%cybrspc@cs.umn.edu  [my opinions]            sometimes, you're the bug!"
cybrspc!roy@cs.umn.edu  [my $0.0275 ]                      --Mark Knopfler
Newsgroups: comp.os.msdos.programmer
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: Results of the smallest TSR contest
Organization: Queen's University
Date: Wed, 2 Sep 1992 14:27:26 GMT

In article <2aa36355@ralf> Ralf.Brown@B.GP.CS.CMU.EDU writes:
>See PD1:<MSDOS.KEYBOARD>RBKEYSWP.ZIP on SIMTEL20.  Includes full source.
>It's actually 53 bytes of resident code, which requires a 64-byte UMB or
>128 bytes in low memory (64 bytes of PSP).  Of those 53 bytes, 16 bytes are
>overhead to make sure that the right control key is ignored and only the
>left one is remapped.

I think the relevant number is the 128 bytes, if that's 
how much you lose when you run it.  In that regard Denis has us both beaten 
by a wide margin:  since he didn't even try compiling his, it uses up 0 
bytes when run.  Of course, ours have the advantage of working :-).

Duncan Murdoch
dmurdoch@mast.queensu.ca
From: leadfoot@bigbootay.sw.stratus.com (Mark Curtis)
Newsgroups: comp.os.msdos.programmer
Subject: Any idea why NUL is busy inside of windows?
Date: 3 Sep 92 01:09:45 GMT

I can not get MS's C7 pwb to compile inside a dos window.  It gets
a sharing violation on the dev NUL.  NUL is used to throw away
unwanted output.  Outside of windows all is fine, but inside a dos
window any write accesses to NUL produce share violations.

copy \autoexec.bat nul               inside a dos window causes A/R/F
                                     error message.  PWB displays an
                                     error prompt and aborts.

It isn't pwb that is causing the problem.  Start windows, open a dos
window, and try the above copy.  Yes you do need to have share loaded.

Any ideas on how to get around this?

Works fine outside of windows.

Mark
Newsgroups: comp.os.msdos.programmer
From: drice@ponder.csci.unt.edu (Keith Rice)
Subject: Re: PRINT.EXE a binary file?
Organization: University of North Texas
Distribution: usa
Date: Thu, 3 Sep 1992 03:35:56 GMT

In <BtzFH9.G3J@usenet.ucs.indiana.edu> yawei@bronze.ucs.indiana.edu (~{QG9p~}) writes:


>I have the need to dump megabytes of bitmap image to some slow
>dot matrix printers. I thought this might a neat idea: first
>dump the image to a disk file, then pass the file name to
>PRINT.EXE via the DOS multiplex interrupt calls so that it can
>be printed in the background. Everything worked perfectly 
>until some bytes with values 0x0D or 0x1B sneaked into the files.

>It turned out that PRINT.EXE was only equiped to handle non-binary
>files! (This was confirmed after checking the manuals.) An 
>otherwise useful program is thus seriously handicapped.

>I wonder whether anyone has discovered anything undocumented that
>might allow me to get PRINT.EXE to do what I wanted? 

>On a similar note, can anyone recommend any PD print spooler
>that can handle that much data? PD utility is probably the next
>best thing in terms of user's ease of access.

If you're willing to not use the computer while the image is printing
you can try "COPY filename LPT1 /B".  This will "copy" the file to
the printer and it won't choke on the odd values because the "/B"
copies in binary mode instead of text mode.

--
D. Keith Rice -- University of North Texas -- drice@ponder.csci.unt.edu
-----------------------------------------------------------------------
Beta Test: To voluntarily entrust one's data, livelihood and sanity to
           hardware or software intended to destroy all three.  In
           earlier days, virgins were selected to beta test volcanoes.
From: falk@peregrine.Sun.COM (Ed Falk)
Newsgroups: comp.os.msdos.programmer
Subject: Re: The Box-Drawing Charachters
Date: 31 Aug 1992 23:29:03 GMT
Organization: Sun Microsystems, Mt. View, Ca.
NNTP-Posting-Host: peregrine

In article <1992Aug31.184726.1583@mits.mdata.fi> kennu@mits.mdata.fi (Kenneth Falck) writes:
>>and if so how are the ordered?
>
>You know, it'd be interesting to find any intelligent order for
>the entire extended IBM ASCII character set... The characters
>seem to be organized by groups of 32's, but there are still
>some very strange symbols among the accented characters, and
>you can't even dream of finding some sort of organization 
>inside these groups. (I wonder why they included only some
>characters of the Greek alphabet etc...)

Go look at IBM's EBCDIC character set (where, for example, '~' comes
between 'r' and 's') and ask yourself if you'd dream of finding some
sort of organization in their extended IBM ASCII character set.

		-ed falk, sun microsystems
		 sun!falk, falk@sun.com
	"Towards the end, the smell of their air began to change"
Newsgroups: comp.os.msdos.programmer
From: nyh@wpi.WPI.EDU (Nevo Y Hed)
Subject: MOU105 ... HELP!
Organization: Worcester Polytechnic Institute
Date: Tue, 1 Sep 1992 11:42:36 GMT




	Hi,

	MOU105 is mentioned in the FAQ for this group.  So I went and
tried it.  I liked the demo program - and wanted the said 'edge'.


	I am working with TC++ [to be exact BC3.0].  Under BC3.0 I
didn't have problems with large model but I can't get it to work in
huge model.

	The problem is that the test program behaves as if there is a
button press event on movement events but processes the movments
correctly.  Further debbuging has shown that the value passed in AX to
the handler is bogus [in consistent with Brown's interrupt list].  It
is bougus since it is a large number [higher then 127, with 7 bits -
it dont make sense] but one can always live with that since we mask
the AX value - however the said bogus value has some bits permenantly
set.

	Since I had a microsoft QC handy I also tried it there and it
wouldn't even do large model correctly - it did small model okay
[didn't test other models].

	The problems under QC were completely different but I didn't
have a decent debbugger on the same machine so I will not elaborate.

	I hope this was not asked before but I couldn't find this in
the recently posted FAQ.

	The code has direct refrences to DGROUP - but since DGROUP
does not exist in huge model I replaced it with MOU_DATA.

	I assume that the said modification is not problematic since
the problem described above [with teh AX] can be detected prior to the
mentioning of MOU_DATA.



	I have no idea why the bug exists and how to fix it OR how to
even link a smal model OBJ with huge program.


	Thanx!
		-Nevo 
-- 
Nevo Y. Hed ............. nyh@wpi.wpi.edu .....................................
++1-508-754-2491 ........ CS student, Worcester Polytechnic Institute .........
"I like my cigar too, but I take it out of my mouth from time to time" G.Marx .
Newsgroups: comp.os.msdos.programmer
From: fhollowa@cs1.uct.ac.za (FG HOLLOWAY)
Subject: Compare MSDos5 vs DRDos6
Summary: Could anybody do a comparison between the 2 os's?
Organization: Computer Science Department, University of Cape Town
Date: Mon, 31 Aug 1992 08:00:02 GMT

Could anybody write a comparison between Microsoft's MSDos 5  and Novell's 
DRDos 6. Could you include how Windows 3.1 runs under them (especialy 
DRDos?).
Newsgroups: comp.os.msdos.programmer
From: pynq@quads.uchicago.edu (George Jetson)
Subject: Re: REBOOT FROM BATCH FILES
Reply-To: pynq@midway.uchicago.edu
Organization: D. J. Dougherty & Associates
Date: Thu, 3 Sep 1992 15:53:14 GMT

In article <1525.549.uupcb@bville.gts.org> greg.vigneault@bville.gts.org (Greg Vigneault)  writes:
(The usual question about warm-booting ... deleted)

> Type GBU V for a brief command syntax list. (Note: the M option is
> for Zenith Data Systems PCs _only_.)
>
> To get GBU.COM, put the following lines into a text file named
> GBU.SCR, then type "DEBUG < GBU.SCR" (without quotes) to create
> GBU.ARC on your MS-DOS system.  Then extract GBU.COM with PKUNPAK.
> ---------------------------- DEBUG script ----------------------------
> N GBU.ARC
> E 0100 1A 08 47 42 55 2E 43 4F 4D 00 5E 5E 5E 5E 5E F9 04 00 00 3E 16
> E 0115 41 05 BB D8 0B 06 00 00 0C E9 C6 01 80 F4 E0 C8 14 2B 30 60 C4
> E 012A 00 70 44 48 15 10 31 5C C4 00 81 62 4C 0A 88 39 72 4C 3C E2 C2
> E 013F 4A 9A 33 6E CA 84 A9 C3 86 4E 03 05 0A 48 70 72 01 C8 C7 80 00

Well, I guess this is one way to get around the ban on binary postings.
I don't see any binary here...

************************************************************************
A note to new readers:  the weasely :-) symbol is frowned upon in this
group.  Any questions, see Phil Gustafson who will gladly rearrange your
diodes for you.
			- From the AFU FAQ -

	- pynq@quads.uchicago.edu, who is still costing the net
	  hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
From: harrison@lclark.edu (Mark Harrison)
Newsgroups: comp.os.msdos.programmer
Subject: Re: general purpose mouse driver code?
Date: 26 Aug 92 18:08:36 GMT
Article-I.D.: lclark.1992Aug26.180836.3134
Organization: Lewis & Clark College, Portland OR

In article <1992Aug26.145503.37119@ns1.cc.lehigh.edu> jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO) writes:
>
>Does anyone know of any (preferably free, but $$ is ok too) code
>available in the form of either a link library or C source which I
>could use in my own programs? I just need basic mouse functions such
>as putting up a cursor, getting the current screen position of the
>cursor, and detecting when a button is pressed. I do need to be able
>to display the cursor after entering graphics mode (ie. via
>"initgraph" in Borland C).
>
>                                Thanks in advance, John M. Troiano

Along the same lines, does anyone know where I can get example code of
interrupt driven mouse code.  I already have code for polling for changes,
but I have heard that the interrupt driven method is better.  I would like
code, so I can implement my own routines.

                            also Thanks in advance, Mark E. J. Harrison

-- 
=============================================================================
Mark Harrison           |  "We are the Priests, of the Temples of Syrinx
harrison@sun.lclark.edu |   Our great computers fill the hallowed halls."
              -- Me     |                                    -- Rush
Newsgroups: comp.os.msdos.programmer
Subject: RELATIONAL DATABASE INQUI
From: jeff.van.voorhis@cccbbs.UUCP (Jeff Van Voorhis) 
Date: 28 Aug 92 18:52:00 GMT
Reply-To: jeff.van.voorhis@cccbbs.UUCP (Jeff Van Voorhis) 
Distribution: world
Organization: Cincinnati Computer Connection BBS - Cincinnati, OH - 513-752-8248

Patrick,

You might want to check out this months PC Mag. They do a good
review of the major SQL (RDBMS) software.
We currently use ORACLE version 6.0 with Unix or Novell servers and
are starting work with GUPTA (Sql Windows). Gupta is very nice if
you want to develop Windows applications quickly. It can also front
end SYBASE, ORACLE, Informix databases...

Hope this helps...
Jeff.
From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Newsgroups: comp.os.msdos.programmer
Subject: Re: alt 255
Date: 28 Aug 92 18:32:19 GMT
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada

In article <exuptr.390.714845407@exu.ericsson.se> exuptr@exu.ericsson.se (exuptr@exu.ericsson.se) writes:
>In article <92238.135238MCHAMINA@ESTEC.BITNET> MCHAMINA@ESTEC.BITNET (CHAMINADE, MARC MICHEL LOUIS) writes:
>
>>If you want to prevent people to delete your files on your hd with the function
>>del xxx.x rather than Attrib you'd better rename the files from
>>xxx.x to
>> xxx.x The space in front of the name is obtained with the alt-255 combination.
>>You can not call the file or do anything to it by using the space key.
>
>>Some may find it usefull. I do !
>
>From a program, you can actually put a space (ASCII 32) in the filename.  
>This will prevent some hacker from using the alt-255 trick to delete your 
>file.  Of course, if you create a file ' abc.xyz', it can be gotten rid of
>with the command 'del *.xyz'.
>
>  - Patrick Taylor
>    exuptr@exu.ericsson.se                       "Don't let the .se fool you"
>    alternately, exuptr@ZGNews.Lonestar.Org

One amazing thing I saw was someone who put a file named *.* in a PC!
The trouble is that the PC was in a remote location (50 miles from the
nearest town), most persons working in that place having a limited
knowledge of PC.  We presumed at that time some visitor, in prevision
of loosing a maintenance contract, decided to write some *.* files.
A user not very familiar with PC could try to erase those annoying files ...
and the other files as well :-(   We were lucky to discover this before
damage :-) , but unable to find who make that.  

-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
J   __>  Vient de paraitre : Andre Jarret et ses Ancetres
\_.-===  En vente par l'auteur                      Opinions ? Et pis non !
Newsgroups: comp.os.msdos.programmer