home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8475 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  777 b 

  1. Path: sparky!uunet!olivea!spool.mu.edu!uwm.edu!linac!mp.cs.niu.edu!news.ecn.bgu.edu!garrot.DMI.USherb.CA!desrg00
  2. From: desrg00@DMI.USherb.CA (GUY DESROSIERS)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Can't use redirection ">" with EXEC call ???
  5. Message-ID: <C1Bo2x.K6s@DMI.USherb.CA>
  6. Date: 23 Jan 93 19:42:32 GMT
  7. Sender: usenet@DMI.USherb.CA (Pour courrier Usenet)
  8. Organization: Universite de Sherbrooke -- Dept. d'Informatique
  9. Lines: 14
  10. Nntp-Posting-Host: tohi
  11.  
  12.  
  13.     I trying to do something like that (under TP 6.0)
  14.  
  15.     Exec('c:\dos\xcopy.exe', 'b:*.* > result.txt');
  16.  
  17.     I want to redirect the output in a file (result.txt).
  18.     Exec doesn't seem to like redirection. Any idea what I
  19.     do wrong.
  20.  
  21.     Thanks in advance.
  22.  
  23. Guy DesRosiers
  24. Universtity of Sherbrooke
  25. E-Mail: desrg00@dmi.usherb.ca
  26.