delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/27/12:19:43

From: Paula Sanchez <psanchez AT cs DOT montana DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: get output of commands in batch file redirected to a file
Date: Thu, 27 Sep 2001 09:55:48 -0600
Organization: Montana State University
Lines: 24
Message-ID: <Pine.OSF.4.21.0109270943020.5453-100000@esus.cs.montana.edu>
NNTP-Posting-Host: esus.cs.montana.edu
Mime-Version: 1.0
X-Trace: netra.msu.montana.edu 1001606148 23216 153.90.199.47 (27 Sep 2001 15:55:48 GMT)
X-Complaints-To: usenet AT news DOT montana DOT edu
NNTP-Posting-Date: 27 Sep 2001 15:55:48 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

I know that you are more into developing DOS tools, but I assume you are
also DOS user experts, so I decided to ask this question.

I want to be able to call my batch file like this
C:\>mybatch.bat > wholeOut.put

I am using DOS 7.10 and I have some batch files that I am not supposed to
modify its content (I am not allow to redirect the output of each command
in the batch file).  I need to redirect the output of all the commands to
a file from the calling command line.  

I tried that with cmd of Windows 2K DOS prompt and it works, but it does
not work with any other DOS like MSDOS 6.22, DOS from Windows 95
4.00.1111.

Thanks a lot in advance for your time and help,

Paula Sanchez
psanchez AT cs DOT montana DOT edu

The fear of God is the beginning of knowledge.  St. Ivo

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019