home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12517 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. Path: sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!olivea!charnel!jmeyers
  2. From: jmeyers@ecst.csuchico.edu (Jeff Meyers)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Help - DOS commands from program...
  5. Message-ID: <1k4gi7INNou2@charnel.ecst.csuchico.edu>
  6. Date: 26 Jan 93 23:13:11 GMT
  7. Organization: California State University, Chico
  8. Lines: 25
  9. NNTP-Posting-Host: psycho.ecst.csuchico.edu
  10.  
  11. I have written a simple installation program in Turbo Pascal and am having
  12. trouble executing DOS commands from within this program.
  13.  
  14. If the user types "a:install" everything works fine.  But, if they log to
  15. the floppy first, then run install ( A:\>install <cr> ) things choke.
  16.  
  17. Specifically, the destination directory is not created and so the files
  18. are all copied into a file in the root directory.  I use the Turbo Pascal
  19. command exec() to call the following command:
  20.  
  21.     \command.com /C md C:\DEST
  22.  
  23. I also had trouble logging drives and changing directories under program
  24. control, but got around that by haveing the install program create the
  25. appropriate batch file, then executing it...
  26.  
  27. Question: am I missing something? Why don't the DOS commands work the
  28. same as at the command line??
  29.  
  30.  
  31. -- 
  32. ============================================================================
  33. | Jeff Meyers      |  jmeyers@ecst.csuchico.edu      | 39x43'N  121x48'W   |
  34. | Chico, Ca 95926  |  KD6DIS@KE6LW.#NOCAL.CA.USA.NA  | Grid: CN80-CM99 ??  |
  35. ============================================================================
  36.