Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!uakari.primate.wisc.edu!caen!umich!sharkey!tygra!dave From: dave@tygra.Michigan.COM (David Conrad) Newsgroups: comp.lang.pascal Subject: Re: Redirecting Exec() output Message-ID: <1991Jun10.081429.6305@tygra.Michigan.COM> Date: 10 Jun 91 08:14:29 GMT References: <15253@ms.maus.de> Distribution: world,comp Organization: CAT-TALK Conferencing System, Detroit, MI Lines: 28 In article <15253@ms.maus.de> Kai_Henningsen@ms.maus.de (Kai Henningsen) writes: >the following works absolutely flawless: > >{$M 16384,0,0} >program tst; >uses dos; >begin > swapvectors; > exec(getenv('COMSPEC'),'/c dir >somewhere'); > swapvectors; ~~~~~~~~~ >end. > >Now, if you cannot get THIS program to run, something is wrong with DOS - There certainly is something wrong with DOS - it only allows 8 character file names. I'm sure you knew that, but I just wanted to head off any complaints about the output being sent to file 'somewher' instead of 'somewhere', and Turbo Pascal deleting the last character of the string. I also can't pass up a chance to flame MS-DOS. ;-) -- David R. Conrad dave@michigan.com -- = CAT-TALK Conferencing Network, Computer Conferencing and File Archive = - 1-313-343-0800, 300/1200/2400/9600 baud, 8/N/1. New users use 'new' - = as a login id. AVAILABLE VIA PC-PURSUIT!!! (City code "MIDET") = E-MAIL Address: dave@Michigan.COM