home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 12022 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.1 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!vthnw.cvm.msu.edu!eoq
  2. From: eoq@vthnw.cvm.msu.edu (Edward Quillen)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Setting DOS environment from C program
  5. Message-ID: <eoq.58.0@vthnw.cvm.msu.edu>
  6. Date: 12 Jan 93 16:33:26 GMT
  7. Organization: Veterinary Teaching Hospital, Michigan State Univ.
  8. Lines: 18
  9. NNTP-Posting-Host: cgpc0008.cvm.msu.edu
  10.  
  11. I know this has been harped on a million times before but...
  12.  
  13. I have pretty good code that handles setting the DOS environment but
  14. I noticed it doesn't work when the program is run in the AUTOEXEC.BAT
  15. in DOS 5.0, but it does work with 4DOS.
  16.  
  17. The code scanes down the memory allocation chain to find the block
  18. owned by command.com.
  19.  
  20. Could some one send me code that also works in the AUTOEXEC.BAT?
  21. THANKS!!!!!
  22.  
  23.  
  24. +++++++++++++++++++++++++++++++++++++++++++++++++
  25. +++ ED (Edward Quillen)   (517) 336-1293      +++
  26. +++ Vet Teaching Hosp.    System Admin.       +++
  27. +++ Email: quillen@cps.msu.edu                +++
  28. +++++++++++++++++++++++++++++++++++++++++++++++++
  29.