TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Richard Webb
from: Paul Quinn
date: 2008-11-01 12:39:40
subject: determining if file is 0 bytes

Hi! Richard,

On 31 Oct 08 23:27, you wrote to all:

 RW> I have an application that leaves some files behind even
 RW> when the data inside them has been manipulated and deleted.
 RW> IF the files left behind actually contain data, I want to
 RW> process them in a batch.  IF zero byte files, ignore.

 RW> WHat are some favorite tricks for ascertaining this out
 RW> there?
 RW> tHis is for dos 6.22 btw.

IIRC, the old trick was to try to get DOS to copy it to some other
directory.  If the new copy exists (IF EXIST [\dir\newfile]) then the
original is more than 0-bytes.

:)

Cheers,
Paul.

... Deja Booboo: The feeling you've screwed this up before.
--- GoldED+/LNX 1.1.5-31012
* Origin: Quinn's Post - Maryborough, Queensland, OZ (3:640/384)
SEEN-BY: 633/260 267 640/384 954 1674 712/0 104 313 848 800/445
@PATH: 640/384 954 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.