TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: LAURENT JUMET
from: Jasen Betts
date: 1998-10-03 06:13:00
subject: Re^2: Fill a file...

LJ>     Purpose is to fill a file with a string, without deleting it or
LJ> reducing it to zero.
LJ>     With 4dos of course.
LJ>     You need to deal with {at}filewrite, and the time spent should be
LJ> compatible with a human life; the file is 16MB long.

buy a pentium 40000   or try a different langauge, 4dos cant filewrite
more than a few hundered bytes at a time.

actually, try this (it uses debug):

:: wipe.btm
setlocal
set x=%{at}filesize[%1] %+ set y=
do while %x gt 1
set y=%{at}instr[%{at}eval[ %x %% 16],1,0123456789ABCDEF]%y%
set x=%{at}eval[ %x / 16 ]
enddo
set y=00000000%y
set x=%{at}instr[7,-4,%y] %+ set y=%{at}instr[3,-4,%y]
echo rbx%=r%x%%=rrcx%=r%y%=rn%1%=rw%=rq%|debug

it overwrites the file with the contents of "lower" memory which shouldn't
contain any sensitive information.
                        

--- EzyQwk V1.20 01fa018d
* Origin: CSS Brisbane, Qld, Australia. [61-7-3367-3890] (3:640/350)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/506 728 639/252
@PATH: 640/350 201 270/101 396/1 633/260 635/506 728 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™.