TIP: Click on subject to list as thread! ANSI
echo: pascal
to: STEWART HONSBERGER
from: FRANS FLIPPO
date: 1998-04-02 20:29:00
subject: Delete all files

On Thursday March 12 1998 at 05:27, Stewart Honsberger wrote to
to All about Delete all files:
 SH> Hullo (again) all. I have a routine to delete files (individually),
 SH> but is there a way to delete ALL (*.*) files in any given directory?
 SH> (Without deleting and re-creating the directory of course). Any
 SH> example code would be appreciated! TIA!
Use FindFirst and FindNext to search for files with mask '*.*'. The Assign,
Erase, and Find the next until DosError0. (See FindFirst and FindNext in TP
help).
   -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
     Frans Flippo
   - - - - - - - - - - - - - - - - - - -
   Fidonet  -=- 2:2801/300.3
   Zodnet   -=- 115:300/0.2
   Internet -=- rabbit@QuackQuack.com
   
   -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
--- FMailX32 1.42/g+
---------------
* Origin: Rabbit Software (2:2801/300.3)

SOURCE: echomail via exec-pc

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™.