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

HI Paul,

On Sat 2036-Nov-01 12:39, Paul Quinn (3:640/384) wrote to Richard Webb:

 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.

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

I'
d forgotten that one.  Thanks for the reminder.
SOlved my basic problem a different way.  SEarch for a text
string inside it and trap errorlevel.

Three lines of code vs. three lines of code, but thanks for
the reminder of that one.
Recall doing that myself a couple of times .

Regards,
           Richard
--- timEd 1.10.y2k+
* Origin: Radio REscue net operations BBS (1:116/901)
SEEN-BY: 10/1 3 34/999 90/1 120/228 123/500 140/1 222/2 226/0 249/303 250/306
SEEN-BY: 261/20 38 100 1381 1404 1406 1410 1418 266/1413 280/1027 320/119
SEEN-BY: 393/68 396/45 633/104 260 267 285 690/682 734 712/848 800/432 801/161
SEEN-BY: 801/189 2222/700 2320/100 105 200 2905/0
@PATH: 116/901 3634/12 123/500 261/38 633/260 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™.