Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpcc05!hpyhde4!hpycla!hpcuhc!hpcupt3!defaria@hpcupt3.cup.hp.com From: defaria@hpcupt3.cup.hp.com (Andy DeFaria) Newsgroups: comp.lang.pascal Subject: Redirecting I/O for .BAT files? Message-ID: <45670020@hpcupt3.cup.hp.com> Date: 13 Jun 91 20:41:58 GMT Organization: Hewlett Packard, Cupertino Lines: 21 How does one redirect output for a .BAT file? Using plain old COMMAND.COM: >DIR > FOO.OUT { Works as expected } >LS > FOO.OUT { fails! } where LS is a .BAT file that simply has: @echo off dir %1 I'm trying to get my shell to obey I/O redirection in both cases but it ain't working. Now I find out that even COMMAND.COM doesn't obey I/O redirection for the output of a simple .BAT file!?! Is it possible to do this in TP? Of course once I get the ">" and ">>" for .BAT files problem solved I'll need to address the "|" for .BAT files problem. Thanks in advance.