home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12490 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  37 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!ukma!bogus.sura.net!opusc!usceast!douglas
  3. From: douglas@cs.scarolina.edu (G. David Douglas Jr.)
  4. Subject: Re: Help - DOS commands from program...
  5. Message-ID: <douglas.728190495@willow.cs.scarolina.edu>
  6. Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
  7. Organization: USC  Department of Computer Science
  8. References: <1k4gi7INNou2@charnel.ecst.csuchico.edu> <douglas.728101903@ebony.cs.scarolina.edu> <1k5i8eINNq8f@charnel.ecst.csuchico.edu>
  9. Date: 28 Jan 93 03:08:15 GMT
  10. Lines: 25
  11.  
  12. Hmmm -- trying output redirection with the code I posted seems to
  13. work.  Strange thing is, (this is under a SoftPC PC emulator on
  14. a DECstation here at U.S.C., DOS version 3.3) trying to change
  15. drives doesn't work -- yet it does at home under version 4.01!
  16. It's as if drive/directory information is changed in a more
  17. permanent way under version 4.01 than in version 3.3.  (?????)
  18. I'll have to wait till I get home to check things out
  19. further.  With the exec command you're using, do you give it
  20. the name of the file and the parameters to pass to the utility
  21. (e.g.  exec('C:\COMMAND.COM', '/C CD C:\'); )  or does it
  22. look like  exec('C:\COMMAND.COM /C CD C:\');  ?  I suppose what
  23. I'm getting at is that I don't understand how your version of
  24. exec  is executing C:\COMMAND.COM.
  25.  
  26. As for output redirection under direct program control, that MAY
  27. be possible (probably is) -- I have a book on MASM (Macro
  28. Assembler) programming by Dan Rollins that lists the various
  29. PC-DOS services available.  That may give a way to redirect
  30. utility output from within a program.  I'll let you know
  31. what I find out.
  32.  
  33.  
  34. David Douglas
  35. douglas@usceast.cs.scarolina.edu
  36.  
  37.