Message-Id: <3.0.16.19910810183153.303705da@tellus.swip.net> X-Sender: mt58779 AT tellus DOT swip DOT net X-Mailer: Windows Eudora Pro Version 3.0 Demo (16) To: opendos AT delorie DOT com From: Bernie Subject: Re: batch file problems Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 16 Aug 2001 08:25:50 +0200 Reply-To: opendos AT delorie DOT com Donald wrote: >> Internal COMMAND.COM commands doesn't change errorlevel. :-( > > Hmmm, that sounds like a strange thing to do. Copy works this way in MS-DOS before version 6 as well, I'm not entirely sure about it being version 6 but it was like that in earlier versions anyway. >> But in this case solution exist: >> >> if not exist %1 goto nofile >> copy %1 > > Okay, I'll try it that way. Not sure why I didn't think of that myself. >Thanks. Yes, what Arkady suggest should work without problem. IIRC one interesting thing about copy in MS-DOS (I don't know if DR-DOS is the same) is that empty files aren't copied. //Bernie