🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7784

Re: Help - DOS commands from program...

#7784
From: G. David Douglas Jr.
Date: Thu, 28 Jan 1993 03:08
24 lines
1724 bytes
Hmmm -- trying output redirection with the code I posted seems to
work.  Strange thing is, (this is under a SoftPC PC emulator on
a DECstation here at U.S.C., DOS version 3.3) trying to change
drives doesn't work -- yet it does at home under version 4.01!
It's as if drive/directory information is changed in a more
permanent way under version 4.01 than in version 3.3.  (?????)
I'll have to wait till I get home to check things out
further.  With the exec command you're using, do you give it
the name of the file and the parameters to pass to the utility
(e.g.  exec('C:\COMMAND.COM', '/C CD C:\'); )  or does it
look like  exec('C:\COMMAND.COM /C CD C:\');  ?  I suppose what
I'm getting at is that I don't understand how your version of
exec  is executing C:\COMMAND.COM.

As for output redirection under direct program control, that MAY
be possible (probably is) -- I have a book on MASM (Macro
Assembler) programming by Dan Rollins that lists the various
PC-DOS services available.  That may give a way to redirect
utility output from within a program.  I'll let you know
what I find out.


David Douglas
douglas@usceast.cs.scarolina.edu
Technical Details
Message-ID: <douglas.728190495@willow.cs.scarolina.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!bogus.sura.net!opusc!usceast!douglas
References: <1k4gi7INNou2@charnel.ecst.csuchico.edu> <douglas.728101903@ebony.cs.scarolina.edu> <1k5i8eINNq8f@charnel.ecst.csuchico.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!bogus.sura.net!opusc!usceast!douglas
From: douglas@cs.scarolina.edu (G. David Douglas Jr.)
Subject: Re: Help - DOS commands from program...
Message-ID: <douglas.728190495@willow.cs.scarolina.edu>
Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
Organization: USC  Department of Computer Science
References: <1k4gi7INNou2@charnel.ecst.csuchico.edu> <douglas.728101903@ebony.cs.scarolina.edu> <1k5i8eINNq8f@charnel.ecst.csuchico.edu>
Date: 28 Jan 93 03:08:15 GMT
Lines: 25