HDTenEightyP/NetNews huggingface dataset:
From: spencer@cats.ucsc.edu (Michael Spencer)
Newsgroups: comp.os.msdos.programmer
Subject: Re: batch question
Date: 7 Jan 93 20:49:03 GMT
Organization: University of California, Santa Cruz
NNTP-Posting-Host: si.ucsc.edu


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.

WORKAROUNDS:
	(1) Write a C program which returns an exit value based on time(),
	    then access the result in the batch file, eg:
			 CTimer
			 if errorlevel --- goto Job1   etc
		This is clumsy and limited, but may work for you.

	(2) Use PERL to write a script.
		This is much more sophisticated, flexible, & powerful
		but puts you on the learning curve for that language
		-- no pain, no gain -- PERL can be used for all kinds
		of job control functions. If it can be done at all,
		you can do it in PERL.  A DOS version of the language 
		is available from any SIMTEL mirror.


===========================================================================
Mike Spencer               |
spencer@cats.ucsc.edu      |    Reality doesn't care about my opinion.
2640 Borregas              |
Aptos, CA   95003          |
===========================================================================

-- 

===========================================================================
Michael Spencer            |
spencer@cats.ucsc.edu      |    Reality doesn't care about your opinion.
(408) 688-7798             |
===========================================================================
Date: Friday, 8 January 1993 19:13:12 EST
X-Mailer: TMail version 1.14R
From: "Tim Triemstra" <empath@ais.org>
Organization: Empath Software
Subject: Re: Suggestions wanted: A good programmers editor!
Newsgroups: comp.os.msdos.programmer
Distribution: world

In <1993Jan7.221425.23792@murdoch.acc.Virginia.EDU>, fs8j@uvacs.cs.Virginia.EDU (Fraser Street)  wrote:
   >1) Be character based.  
   >2) Do split screens to edit multiple files 
   >3) Have some sort of menu bar for functions which can appear/disappear
   >   as necessary.
   >4) Have some sort of keybindings I am familiar with (emacs or
   >   Wordstar)
   >5) Hopefully have a pop-up help screen for keybindings..
   >
   >2) Syntax directed indenting so that when I program the editor is
   >   aware of the current code and automatically indents to handle (), {},
   >   ;, and other similar constructs.  This would be similar to emacs's
   >   C-mode.
   >3) A relitively robust UNDO facility.
   >
   >
   >The editor DOES NOT need to have:
   >
   >1) A fancy macro language.
   >2) The ability to edit huge files.

Welp, I've used 2 different DOS editors on a regular basis.  I don't recall
seeing a recommended operating system.  But, Bingo3.0 and Qedit 2.1 are both
very good for DOS.  They both accomplish most of the requirements, except
qedit doesn't have a comprehensive mouse feature.  It allows you to move
the cursor with the mouse, but no highlighting.

They both have a C-Mode as well and keybinding setups for multiple editors/
wordprocessors like emacs and wordstar.

Tim.

-------------------------------------------------------
| When the end comes, there will be two men standing: |
|   Me, and the guy I gotta kill.   - Gosh I'm EVIL   |
------ Tim Triemstra ------------- empath@ais.org -----
Newsgroups: comp.os.msdos.programmer
From: kenc@sol.acs.unt.edu (Ken Corey - Operator)
Subject: QB 4.5 question
Organization: University of North Texas
Date: Wed, 6 Jan 1993 22:28:10 GMT


Can anyone help me with this scenario:

I have a file of 128 byte records.  There are 4 or 5 differring possible 
record structures.  the first is:

TYPE block1type
  howmany as integer
  DIM items(64) AS INTEGER
END TYPE

Or, at least, that's what I'm looking for.  QB 4.5 seems to choke on having 
a DIM inside a type declaration.  Well, shucks, how else can I get an 
indexed block of 64 integers?  (I'm assuming that integers are stored in 
LSB MSB format, and are 16 bits wide total.)

I'm not worried about others yet....I'm fighting with this one.

Talk to y'all later...

Ken == kenc@sol.acs.unt.edu == kenc@vaxb.acs.unt.edu
 "It's bad luck to be superstitious."
 		-- Andrew W. Mathis
Newsgroups: comp.os.msdos.programmer
From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Subject: Re: Fortran Grammar...
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
Date: Sat, 9 Jan 1993 23:31:44 GMT

In article <9301094599@fcshome.UUCP> fredex@fcshome.UUCP (fred smith) writes:
>Denis Beauregard (beaurega@ireq.hydro.qc.ca) 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. 
>
>Where can such persons find some documentation on the language?
>
>Fred

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.  On UNIX,
you could have the same compiler for a full school and no idea were is the
doc, but PC network are just too small to have a lot of software 
available and no idea where to get doc about it.  

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.


-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Ge'ne'alogiste des familles : Beauregard/Jarret/Jarest/Vincent
J   __>  Un Que'bec renouvele' dans une Ame'rique renove'e
\_.-===  Ope'rateur de "Racines du Que'bec" (514) 922-9636 BBS/Genealogie
From: jjarrett@csugrad.cs.vt.edu (James Jarrett)
Newsgroups: comp.os.msdos.programmer
Subject: Re: LOADFIX and low-memory EXE loading
Summary: UPACKEXE doesn't recognize EXE as packed.
Keywords: UPACKEXE, packed executables
Date: 12 Jan 93 21:03:05 GMT
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA


Unfortunately, I have tried LZEXE's UPACKEXE.EXE utility and it doesn't 
recognize Borland generated EXE files as packed (bad header error).

Jim
Newsgroups: comp.os.msdos.programmer
From: msc@snoopy.ncku.edu.tw (Mac Su-Cheong (MSC))
Subject: Re: Turbo Vision is too fat!
Organization: National Cheng Kung University, Tainan, Taiwan
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 12 Jan 1993 15:09:22 GMT

  Oops! In the previous posting it has been mentioned that the .exe
file is 110K. I just test again and find that it is 120K+. Then I
manage to compress it with PKLITE 1.15 and the size goes down to
58K! This size is acceptable now (although it will be expanded back
to 110K in memory during execution). There is another mistake in the
previous posting. The 'Smallest code' option is found in the
'Optimization' of 'Compiler' option under 'Option menu'. Sorry for
wasting bandwidth.

  I have tried to compress other .exe generated by BC 3.1 but in 
vain. PKLITE reports that the file contain overlay. I just choose
standard MSDOS exe file in code generation, not the overlaid exe.
Is that cause by the debug information?

  Thanks again for your kindly help.

------------------------------------------------------------------------------
Mac Su-Cheong (MSC)       | Computer Science Division, |          __o
msc@eembox.ncku.edu.tw    | Department of E.E.,        |         -\<,
nckus089@twnmoe10.bitnet  | National Cheng Kung Univ., |        O/ O
msc@snoopy.ncku.edu.tw    | Tainan, Taiwan, R.O.C.     | Hey....I am the wind!
Newsgroups: comp.os.msdos.programmer
From: eball12@ursa.calvin.edu (Edward Ball)
Subject: HELP! Looking for .MOD specs...
Organization: Calvin College
Date: Thu, 7 Jan 1993 20:14:48 GMT

I was wondering if anyone out there has access to or knows the location of
any files or information with the specifications of any or all of the .MOD
music file formats.  I haven't been able to find them anywhere -- can 
anyone out there help?  Thanks in advance...

--
-- Edward Ball, .sigless Knight ------------------------- eball12@calvin.edu --
                                                                             --
Newsgroups: comp.os.msdos.programmer
From: vsnyder@math.jpl.nasa.gov (Van Snyder)
Subject: What is the timer chip clock rate?
Organization: Jet Propulsion Laboratory
Date: Tue, 5 Jan 1993 00:57:13 GMT

In the process of writing a routine to get high-resolution times from the PC's
timer chip, I wondered at the weird clock rate for the timer chip: 1.193180
Mhz.  Is that right?  If the clock rate were 1.193046 Mhz, the low-speed
counter at 040:06eH would tick once per hour.  At 1.193180 Mhz, it ticks about
1/2 second early (65536*65536/1193180 ~= 3599.597, 65536*65536/1193046 ~=
3600.001), or about 6 us early per interrupt (65536/1193046-65536/1193180),
assuming overflow of the medium-speed counter at 040:06cH is intended to tick
the low-speed counter at 040:06eH once per hour.

The counter in the timer runs continuously, that is, it doesn't stop when it
generates an interrupt and wait to be restarted, so it doesn't seem reasonable
that the approximately 6 us per interrupt are to allow for interrupt processing.

Also, it seems the only thing one can do if one detects that the timer
overflow interrupt pending bit is set in the peripheral interrupt controller
(PIC 0, bit 0) is to pretend the count in the timer chip is 0.  If you
enable interrupts, do a few NOP's, and start over (which disables
interrupts), or keep track of the presence or absence of overflow, and add
that onto the reported medium-speed counter (with carry into the reported
value from the low-speed counter), the clock occasionally appears to
run backward by about 20 ms.

Any ideas.
-- 
What fraction of Americans believe   |  Van Snyder
Wrestling is real and NASA is fake?  |  vsnyder@math.jpl.nasa.gov
From: robert@alkymi.unit.no (Robert Schmidt)
Newsgroups: comp.os.msdos.programmer
Subject: Want real mode EMS or XMS library
Date: 7 Jan 93 19:21:57 GMT
Organization: Norwegian Institute of Technology


I'd like a library for accessing expanded and/or extended memory in
Borland C++.  If the source is included, even better.

Also, I would like to know what's best/fastest to use when programming
real/V8086 mode as I am doing.  I figure that with XMS, you will have to
copy the data to conventional memory before doing any processing
on it, and with EMS, all you do is map the correct pages into the 
page frame at 0xe000 (or whatever).  As I see it, EMS is faster.  

Am I right?

Please don't mention DOS extenders, as I am well aware of those.  That
goes for Phar Lap, DJGPP, Watcom whatever.

BTW, is the DOS extender in BP 7.0 usable with BC++ 3.1?

Robert@solan.unit.no
Newsgroups: comp.os.msdos.programmer
From: jordan@castor.cs.uga.edu
Subject: QuickC lib files?
Originator: jordan@castor
Organization: University of Georgia
Distribution: na
Date: Mon, 11 Jan 1993 04:21:58 GMT


Are the SLIBCE and MLIBCE files for QuickC 2.51 available anywhere on the
Internet?  While trying to make room on my dad's hard drive, i accidentally
erased the files and I don't have my original disks with me.  I'm kind of
stuck in the middle of a program I'm writing.

Could anybody tell me where they are or point me to some way I can get
those two files quickly? 

Thanks,
Chuck
-- 
                  Chuck Jordan | jordan@castor.cs.uga.edu
      "Oh take me to the magical mushroom castle, my friend booze."
		    -- Mystery Science Theater 3000
From: corteenc@kirk.msoe.edu
Newsgroups: comp.os.msdos.programmer
Subject: Help needed--Accessing a driver
Date: 9 Jan 93 21:43:07 CDT
Distribution: usa
Organization: Milwaukee School Of Engineering, Milwaukee, WI USA

Hello,

I have an elementary question.  I am interested in the VGAkit driver located at
nic.funet.fi, only I am not sure how to access the system to obtain it.
I am on a VAX through a my PC at home and would appreciate some help
with this simple problem of pure ignorance.


Thanks alot, and please dont flame me.
Im new at this.

Chris.

e-mail: corteenc@kirk.msoe.edu
From: libh@Jane.UH.EDU
Newsgroups: comp.os.msdos.programmer
Subject: Wildcard searches
Date: 7 Jan 1993 23:43:28 GMT
Organization: University of Houston
Reply-To: libh@Jane.UH.EDU
NNTP-Posting-Host: jane.uh.edu

  I am adding some bells and whistles to an old program I wrote in Borland
Turbo-C to keep track of my book collection.  One of these is a string search
that will find partial matches such as a key word in a title or series name. 
Could someone suggest where to find an algorithym or some source to look at
that conatains something similar.  I would greatly appreciate any and all
suggestions.

********************************************************************************
*                       | What do I see?                                       *
*                       | I see time as it affects all things . . .            *
*   John White          | Human flesh withers and dies before my eyes. .       *
*                       | Flowers bloom only to fade . . .                     *
*   Libh@Jetson.uh.edu  | Trees drop green leaves, never to regain them        *
*                       | In my sight. . .it is always winter. . .always night *
*                       |                                     -- Raistlin --   *
********************************************************************************
From: spencer@cats.ucsc.edu (Michael Spencer)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Equivilent of UNIX exec shell cmd
Date: 6 Jan 93 18:12:52 GMT
Organization: University of California, Santa Cruz
NNTP-Posting-Host: si.ucsc.edu


PROBLEM: How do you call a batch file from a C program
	    without leaving the batch file "live" ?

ANSWER:  You can't.

WORK AROUND:
	    1) The batch file name + path MUST be less than 16 chars
	    2) Push the batch file name on the keyboard stack 
		  (requires 286 or better).
         3) Terminate the C program
	    4) The batch file on conclusion calls the C program with 
		  an argument which places the program in the proper
		  position.
 
   What happens is that the C program terminates, command.com
looks for input, the keyboard stack provides the input, the batch
file is called by the opSys, and the final action of the batch file
is to recall the C program. Perpetual motion.

	Note: (1) Some keyboard stacks may be larger than 16 chars
			but you can't count on this.
		 (2) The chars pushed on the keyboard stack are NOT
			ASCI, they must be keyboard codes

					Mike Spencer
					spencer@cats.ucsc.edu
 

D
Newsgroups: comp.os.msdos.programmer
From: msc@snoopy.ncku.edu.tw (Mac Su-Cheong (MSC))
Subject: Turbo Vision is too fat!
Organization: National Cheng Kung University, Tainan, Taiwan
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 11 Jan 1993 08:58:26 GMT

Hello,

  Recently I take a look at Turbo Vision inside Borland C++ 3.1 with
Apllication Framework. Then I build the .exe of the program hello.cpp
WOW, the .exe file size is 200K+ ! The program is so simple and it is
unacceptable big for me. I have tried most of the settings in Option
but in vain, and inside the manual not much is deal with this (the 
whole user guide of TV just talk about TV programming). Is it possible
to slim the TV executable file? I want to write some program and 
distribute them to the public and I am now looking for other shareware
or freeware window and menu libraries for C on msdos.

  Thanks in advance.

------------------------------------------------------------------------------
Mac Su-Cheong (MSC)       | Computer Science Division, |          __o
msc@eembox.ncku.edu.tw    | Department of E.E.,        |         -\<,
nckus089@twnmoe10.bitnet  | National Cheng Kung Univ., |        O/ O
msc@snoopy.ncku.edu.tw    | Tainan, Taiwan, R.O.C.     | Hey....I am the wind!
From: CT64@music.mus.polymtl.ca (Nicolas Gauvin)
Newsgroups: comp.os.msdos.programmer
Subject: Docs on how to deal with shared files in C.
Date: 7 Jan 93 01:02:01 GMT
Organization: Ecole Polytechnique de Montreal

I'm looking for a good source of information on how to program
with shared data files. File locking, record locking ect...
I would greatly appreciate in someone could recommend some books
or some libraries/sources in C.
From: root@cibbs.UUCP
Newsgroups: comp.os.msdos.programmer
Subject: HELP: How does one identify a drive as a Novell network drive?
Date: Thu, 07 Jan 93 12:45:12 EST
Organization: DataSoft Consulting (Toronto, Ont. Canada)

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?

Any informaion regarding this would be appreciated.
Mark

----
Club InSaNiTy BBS   |   BBS:+1 416 691 0679 |   root@cibbs.UUCP
DataSoft Consulting | Voice:+1 416 691 5529 |   uunorth!cibbs!root
Mark Buckaway       | Toronto, Ont. CANADA  |   1@4653 (WWIVnet)
Newsgroups: comp.os.msdos.programmer
From: hshulman@magnus.acs.ohio-state.edu (Harvey G Shulman)
Subject: Re: structures >64K
Keywords: struct, huge
Organization: The Ohio State University
Date: Fri, 8 Jan 1993 15:35:55 GMT

To: psykseth@aau.dk
Subject: Re: structures >64K
Newsgroups: comp.os.msdos.programmer
Organization: The Ohio State University
Cc: 
Bcc: 

Seth:  the code below compiled and ran without error under
turbo c's huge model.  Make sure you select this model on
the compiler option menu.  

It would probably work as well under the
large model with the pointer declaration changed to
yynew  huge *yycrank, j;

I wasn't able to come up with a good way to initialize the
allocated records but the technique below of initializing the
fields of another record, j, and then assigning it to the record
pointed to by yycrank seemed to work.


#include  <stdio.h>
#include  <stdlib.h>
#include  <alloc.h>

void main()
{
int  i;
typedef struct yynew {int current, advance;} yynew;
yynew  *yycrank, j;

/* in the allocation statement I could not see why you used 20000L.
   after all 20000 is 20000, isn't it? */

yycrank = farmalloc(20000 * sizeof(yynew));
for (i = 0; i < 20000; i++)
 { j.current = 0;
	j.advance = i;
	*(yycrank+i) = j ;
 };
}
 in the above loop I tried several variants of assignment to the
 fields of yycrank's records without success.  Maybe someone else can
 describe how to do such things as   *(yycrank+i).current = 0
 

-- 
Harvey Shulman
Ohio State University, Dept of Psychology
614 292-2759 / h.shulman@osu.edu
Newsgroups: comp.os.msdos.programmer
From: fox@rei.com (Fuzzy Fox)
Subject: Re: LOADFIX and low-memory EXE loading
Date: Tue, 12 Jan 1993 00:52:45 GMT
Organization: Recognition Equipment, Inc.

jjarrett@csugrad.cs.vt.edu (James Jarrett) writes:

>My DOS manual does not mention LOADFIX, so all I have is the HELP LOADFIX
>documentation.  How does it work and why is it necessary?

LOADFIX allocates memory up to the first 64K segment, then loads your
program at that point, avoiding the problems that occur when the code
segment is below the 64K boundary.  Normally only DOS is below this
boundary, but DOS 5 can load high and thus allow programs to run there.

>Next, how can I write a program so it doesn't need LOADFIX?

You must be doing something strange to generate a program that fails.
The only problems I have heard of are a buggy version of PKLITE and an
old bug appearing in the EXEPACK module from Microsoft.  Are you linking
with the /EXEPACK (or /PACK or whatever) option on your linker?  You
might just stop using that option, and see.

A program called LOWFIX (available at Simtel-20 and other archive sites)
will patch programs to fix their problems when loading below 64K.  See
what it thinks of your program.

-- 
#ifdef TRUE        | Fuzzy Fox (a.k.a. David DeSimone)       fuzzy@netcom.com
#define  TRUE   0  |
#define  FALSE  1  |  "911 Emergency Rescue Service - Can you hold, please?"
#endif             |
Newsgroups: comp.os.msdos.programmer
From: asu@server2.panther.mot.com (Russell Trotter)
Subject: Serial Communication Question
Organization: Motorola Panther Project, Chandler, AZ
Date: Thu, 7 Jan 1993 14:40:09 GMT

Hello,
 
  A few days ago, my boss posted a question needing some info
on setting up/initializing the com port and read/write howto's.
After digging through the code we got from replies, we found that the best way 
to do this was to use some code that would actually access
the UART? directly, install an interrupt handler for the 
Data Available Interrupt.  Now, the problems we had came from
the fact that the original code we got, checked not only for
the Data Avail. Int, but also the Modem Status Int and the Receiver
Line Status Int.  In test runs, when these to interrupts were handled,
our little 'teeny terminal' program hung.  However, when these two
status ints were 'ignored' (by unsetting them in the Int. Enable Reg.)
then things went fine. (i.e. we could dial up some place, log in,
do a few directory listings).  My question is, what, precisely, are these
status interrupts for, and are they absoultely necessary?  I'm
no PC techie, which is why I ask the Real PCers' (c.o.m.p ) :) 

Thanks for any help.

Russ

Newsgroups: comp.os.msdos.programmer
From: bwl2324@mzdmza.zdv.uni-mainz.de
Subject: FDC (NEC mirco765) programming
Reply-To: bwl2324@mzdmza.zdv.uni-mainz.de
Organization: Johannes-Gutenberg Univ. Mainz
Date: Fri, 8 Jan 1993 11:49:46 GMT

Hello,

I try to program the FDC for sending disk sectors via DMA/channel 2
into memory. This works fine if I read the disk before starting my routine
but if I try to read a disk sector right after booting the FDC status shows
that FDC can't find the Address mark (bit 3 in status byte 0 is set).
I take this step to get the FAT-sector to examine the diskette's format.
I tried to recalibrate the disk drive but it doesn't help.
Any considerations ?

	Thanks for helping,
			Steve
From: bobk@ESD.3Com.COM (Bob Konigsberg)
Newsgroups: comp.os.msdos.programmer
Subject: Re: question on spawning DOS from C prog
Date: 6 Jan 93 20:43:27 GMT

The way to embed a newline in a prompt is to use $_

For example, PROMPT Yes Bob?$_$P$G

will produce:

Yes Bob?
C:\>

as a prompt.

BobK

Xref: sparky comp.os.msdos.programmer:11843 comp.protocols.nfs:3053
From: jay-m@equinox.unr.edu (J.A. MacDonald)
Newsgroups: comp.os.msdos.programmer,comp.protocols.nfs
Subject: Help with Unix file name from MSDOS through PC-NFS *Please*
Date: 7 Jan 93 01:20:02 GMT
Followup-To: comp.os.msdos.programmer
Organization: University of Nevada Reno

Hello,

  I have a question about getting file names through PC-NFS. I am
writing some programs that access files on a Unix system from a PC (MSDOS)
and need to be able to get the entire unix name of a file and the pseudonym
that NFS creates for names longer than 8 characters (eg. file_~ab for 
file_name). The NFS utility LS.EXE can do it, how? Is it an interrupt call?
If so, what are the specifics. Any help is greatly appreciated.

Thanks,

Jay MacDonald
Geosense Consulting
Reno, Nevada
jay-m@equinox.unr.edu

****** Please reply by email. If any interest, I'll summarize and post.
Newsgroups: comp.os.msdos.programmer