home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
153.img
/
TELES.ZIP
/
RAP.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-04-03
|
28KB
|
266 lines
{****************************************************************************}
{ }
{ ZAP - Directory and file "zapper" to allow easy disk cleaning. }
{ }
{ Usage: ZAP [d:][pathname] }
{ }
{ where [d:] may specify an optional disk drive other than the }
{ current default drive and [pathname] specifies the unique }
{ pathname for starting the purge operation. ZAP will scan all }
{ directories beginning with "pathname" and any children that }
{ it contains. After printing out a status report of the }
{ number of files and directories located, ZAP will first }
{ remove all files regardless of their current protection }
{ status or hidden/system status and then will remove the }
{ directories including the beginning "pathname". }
{ }
{ ZAP performs a number of checks to validate the beginning }
{ directory and will not let you specify the Root directory or }
{ the current directory as beginning points for the purge. }
{ ZAP, however, cannot easily detect when you are in a }
{ directory located within the path to be purged. In this }
{ case, ZAP will abort with a Run-Time error as it attempts to }
{ change to a directory that it just deleted. }
{ }
{ ZAP was written for Turbo Pascal Version 3.x but I realize }
{ that several of you will have purchased Version 4.0 so I have }
{ indicated the required changes in ZAP to allow proper }
{ compilation under that version. Remove the comment braces }
{ from the TP 4.0 statements and either comment out the TP 3.x }
{ statements or delete them. }
{ }
{ Note that the standard Turbo Pascal Version 3 procedures }
{ 'NormVideo' and 'LowVideo' behave differently in Version 4.0. }
{ Also, the value of 'IOResult' is different. You may ignore }
{ any warning messages regarding these if you convert this }
{ program to TP 4.0 }
{ }
{ Written by: }
{ LCDR John B. Harrell, III }
{ 1519-A Carswell Circle }
{ Bolling Air Force Base }
{ Washington, DC 20336 }
{ }
{****************************************************************************}
{$R-} {Range checking off}
{$B+} {Boolean complete evaluation on}
{$S+} {Stack checking on}
{$I+} {I/O checking on}
{$N-} {No numeric coprocessor}
PROGRAM DirectoryZapper;
USES
Crt,
D)b }