www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/28/03:08:15

Date: Thu, 28 Sep 1995 08:43:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: rothweil AT mmlab DOT mml DOT mmc DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Problem: Output redirection is using up file handles.

On 27 Sep 1995 rothweil AT mmlab DOT mml DOT mmc DOT com wrote:

> I then create a batch file with the line: tst >tst.out
> repeated about 100 times. After about the 55'th line, I get
> the message:
> "Warning: cannot open swap file c:\tmp\cwsdpmi.swp"

This is DOS misfeature: it won't close a file handle until the batch 
file exits.  (This is why you shouldn't redirect output of a TSR from 
AUTOEXEC.BAT: you'll lose that handle permanently.)  If you really have 
to make so many redirections, I'd suggest using a program from the
``Undocumented DOS'' book, which can detect and release such file 
handles.  Drop me a note if you want more details.

- Raw text -


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