[comp.sys.ibm.pc.programmer] Invoking Command.com processor

draper@cpsin1.uucp (Patrick J Draper) (06/06/90)

Hi everybody,

I'm having some trouble with invoking a secondary command processor.
What I'd like to do is call from a program (written in Modula-2 or C) a
string such as 'sort < a > b' to sort a data file.

I've looked at a DOS reference, and couldn't find anything. I recall
reading somewhere, maybe on the net, about a way to pass a string to the
command processor already resident.

Does anybody have any ideas?

Patrick Draper ----   Michigan State University

bxw@ccadfa.adfa.oz.au (Brad Willcott) (06/08/90)

If you are into programming in the MS-DOS environment, then you should get 
your hands onto a copy of this book :

	"Advanced MS-DOS Programming"

	Author    : Ray Duncan
	Publisher : Microsoft Press
	ISBN 1-55615-157-8

	RRP: US$24.95 (UnServiceable? ;-D )
	     UK#21.95 (I mean Pounds, sorry no 'pound' sign on this keyboard)
	     AU$37.95 (That's Australian Dollars chaps :-) )

Now to get back to it.  This book provides probably most, if not all, of what
you need to know.  It includes a chapter on 'Interrupt Handlers' and another
on 'Installable Device Drivers'.  There are plenty of MASM samples, most of 
which are useable in your own programs, or are stand-alone programs.

-- 
Brad Willcott,                          ACSnet:     bxw@ccadfa.cc.adfa.oz
Computing Services,                     Internet:   bxw@ccadfa.cc.adfa.oz.au
Australian Defence Force Academy,       UUCP:!uunet!munnari.oz.au!ccadfa.oz!bxw
Northcott Dr. Campbell ACT Australia 2600  +61 6 268 8584  +61 6 268 8150 (Fax)