TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: mark lewis
from: Jasen Betts
date: 2003-06-03 07:20:54
subject: ffind = del

Hi mark.

02-Jun-03 11:54:40, mark lewis wrote to Renato Zambon

 ml> :loop
 ml> set hfname=%{at}line[%lstname%,%curline%]
 ml> set curline=%{at}inc[%curline%]
 ml> iff exist %hfname% then
 ml>   echo   %_TIME%  DELETION: Deleting %hfname% >> %logname%
 ml> else
 ml>   echo ! %_TIME%  DELETION: %hfname% not found! >> %logname%
 ml> endiff
 ml> set curline=%{at}inc[%curline%]
 ml> if %curline% LT %linecnt% goto loop

I noticed that you inc curline twice in the loop
and also that nowhere in the loop do you delete the file!
looks like a couple of bugs to me.

also delete errors aren't logged... (read-only or locked files, illegal
filenames, etc...)

 -=> Bye <=-

---
* Origin: Entropy isn't what it used to be. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 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™.