home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8605 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!UB.com!pacbell.com!decwrl!spool.mu.edu!agate!linus!philabs!crpmks!billb
  3. From: billb@crpmks.uucp (Bill Bochnik (Info Systems))
  4. Subject: Re: Can't use redirection ">" with EXEC call ???
  5. Reply-To: billb@crpmks.UUCP (Bill Bochnik (Info Systems))
  6. Organization: Ciba-Geigy Corporation
  7. Date: Tue, 26 Jan 1993 16:22:49 GMT
  8. Message-ID: <1993Jan26.162249.6827@crpmks.uucp>
  9. References: <C1Bo2x.K6s@DMI.USherb.CA>
  10. Lines: 25
  11.  
  12. In article <C1Bo2x.K6s@DMI.USherb.CA> desrg00@DMI.USherb.CA (GUY DESROSIERS) writes:
  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. >
  27.  
  28. I could be wrong, but I think that the redirection is a function of 
  29. COMMAND.COM.  If that is the case, you need to EXEC COMMAND.COM, and pass it 
  30. the xcopy b:*.* >result.txt as the rest of the command.  
  31.  
  32. -- 
  33. Bill Bochnik            | It's hard to be a James Bond in an Abbott
  34. Systems Analyst         |    and Costello world.
  35. Ciba-Geigy Corporation        | Signed and sealed, they deliver oblivion.
  36. philabs!crpmks!billb        | It's worse than that, he's dead Jim.
  37.