Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!goanna!giaea!s9100202 From: s9100202@giaea.gi.oz (Lee Hollingworth) Newsgroups: comp.lang.pascal Subject: Re: Redirecting I/O for .BAT files? Message-ID: <2007@giaea.gi.oz> Date: 22 Jun 91 01:05:02 GMT References: <45670020@hpcupt3.cup.hp.com> <45670021@hpcupt3.cup.hp.com> Organization: Monash University College Gippsland, Churchill 3842, Victoria, AUSTRALIA. Lines: 24 In article <45670021@hpcupt3.cup.hp.com> defaria@hpcupt3.cup.hp.com (Andy DeFaria) writes: >>/ hpcupt3:comp.lang.pascal / s2525090@techst02.technion.ac.il (Eran Davidov) / 4:04 pm Jun 16, 1991 / [lot's deleted..] >This is totally untested and blantly false. "@echo off" does no such thing >and the example .BAT file just does a DIR to the screen (and creates a zero >length OUT.DAT file) when FOO > OUT.DAT is executed. > >I guess I'll just have to re-implement the wheel, open the .BAT file and >execute the commands myself, redirecting output as I go. This is gonna be >a pain, unless someone knows a better answer.... Have a look at article 4334 in comp.lang.pascal -- I've already answered this once. The only way to get DOS to redirect the output from a *.bat file is to do so with the COMMAND command eg., command /c foo > out.dat /****** * Lee Hollingworth s9100202@giaea.oz.au ******/