Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!purdue!haven!umbc3.umbc.edu!umbc5.umbc.edu!cs202216 From: cs202216@umbc5.umbc.edu (cs202216) Newsgroups: comp.lang.pascal Subject: Re: Redirecting Exec() output Message-ID: <1991Apr21.182010.19991@umbc3.umbc.edu> Date: 21 Apr 91 18:20:10 GMT References: <2435@pdxgate.UUCP> Sender: newspost@umbc3.umbc.edu (News posting account) Organization: University of Maryland Baltimore County Lines: 36 In article <2435@pdxgate.UUCP> mwizard@eecs.cs.pdx.edu (Craig Nelson) writes: > > 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) || Try Exec(getenv('COMSPEC'),'/c unzip.exe FOO.ZIP c:\FOODIR > c:nul'); -- Program Signature(input,output); const internet = 'cs202216@umbc5.umbc.edu'; name = 'Matt Gove';