home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR10 / TLXTW110.ZIP / DOS.SLT < prev    next >
Text File  |  1993-08-22  |  469b  |  17 lines

  1. // dos.slc
  2. // Returns to the Telix directory after shelling to DOS.
  3. //
  4. // If the capture file is open it will be closed during the shell, then returned
  5. // to its original state after returning to Telix.
  6.  
  7. main()
  8. {
  9.  str cap[64]; cap = _capture_fname;
  10.  int flag;   flag = capture_stat();
  11.  if (flag > 0) capture("*close*");
  12.  dos("",0);
  13.  newdir( _telix_dir );
  14.       if (flag == 1)   capture(cap);
  15.  else if (flag == 2) { capture(cap); capture("*pause*"); }
  16. }
  17.