Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!pdxgate!eecs!mwizard From: mwizard@eecs.cs.pdx.edu (Craig Nelson) Newsgroups: comp.lang.pascal Subject: Redirecting Exec() output Message-ID: <2435@pdxgate.UUCP> Date: 21 Apr 91 03:46:34 GMT Sender: news@pdxgate.UUCP Lines: 26 OK,OK,OK... I finally found something in TP 6.0 that I couldn't figure out. Supposedly anything you execute from a DOS prompt should execute the same from an Exec() call, so long as no direct video memory calls are made... Well, I want to suppress output of a program that does not use direct video memory, specificly, UNZIP.EXE . Now the weird part. Typing: UNZIP FOO.ZIP c:\FOODIR > c:nul from the DOS prompt works like a champ. But if you use Exec() from the DOS unit, and set the parameters like so: Exec('UNZIP.EXE','FOO.ZIP c:\FOODIR > c:nul'); and the output is no longer redirected to nul. It appears on the screen, and I assure you it isn't a pretty site in the middle of a TVision program. Any ideas out there ? Cheers!, and TIA. []====================================================================[] || Craig R. Nelson | CCSofD Software Inc. || || Programmer | Beaverton, OR, 97005 || || mwizard@eecs.ee.pdx.edu | (unlisted on the net) ||