Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!nuchat!lobster!urchin!f1999.n106.z1.fidonet.org!Harold.Ruby From: Harold.Ruby@f1999.n106.z1.fidonet.org (Harold Ruby) Newsgroups: comp.lang.pascal Subject: Re: Redirecting Exec() output Message-ID: <11609.2810FCD7@urchin.fidonet.org> Date: 22 Apr 91 00:25:11 GMT Sender: ufgate@urchin.fidonet.org (newsout1.26) Organization: FidoNet node 1:106/1999 - The Instrument MEGA, Deer Park TX Lines: 19 on 19 Apr 91 23:30:28 Craig Nelson said to All >part. Typing: > > UNZIP FOO.ZIP c:\FOODIR > c:nul > > Exec('UNZIP.EXE','FOO.ZIP c:\FOODIR > c:nul'); > >and the output is no longer redirected to nul. It appears >on the screen, I don't understand the logic behind assigning a drive location for NUL. NUL requires no path/drive. Also, I've always re-directed output (from dos, and EXEC statements) by using : ">+FILENAME" -not- ">+(space)+FILENAME" as you have done. Try this: Exec ('UNZIP.EXE','FOO.ZIP c:\FOODIR >NUL'); Harold