PURGE
Command
PURGE [partspec] :drive [(parameters)]
Quickly deletes files from the disk
in
drive.
You can use PURGE
to
remove all or some of the files
on
a disk with
one command.
The parameters are:
QUERY
=
NO
automatically removes files without prompting for
each one.
MPW
= "password" states the disk master password
INV removes the invisible files
as
well as the visible files.
SYS removes the system files as well as the visible files.
DATE
=
"M1/D1/Y1-M2/D2/Y2"
removes the files with modify
dates between the two specified dates, inclusive.
=
"M1/D1/Y1"
removes the files with modify dates equal to
the specified date.
= "-M11D1/Y1" removes the files with modify dates before or
equal
to
the specified date.
=
"M1/D1/Y1-"
removes the files with modify dates after or
equal to the specified date.
Once you enter the PURGE command, TRSDOS prompts you for the
disk's password (if it is not PASSWORD), unless you specified it with
the MPW parameter.
Then, the system displays the files one at a time. It prompts you to
remove the file or keep
it.
Respond with 00 to remove the file or
00
to keep
it.
Pressing
(ENTER)
skips the file.
NOTE: BOOT/SYS and DIR/SYS cannot be purged and do not
appear during execution of any PURGE command.
Examples
PURGE
:0
(MPW="SECRET")
(ENTER)
purges all visible files
on
Drive 0 if the master password of the disk is
SECRET. If SECRET is not the master password, the purge aborts
with an error message. The purge shows each file and waits until
00,
00,
or
(ENTER)
is pressed before displaying the next file.
PURGE:
1
(QUERY=NO
tIN'.)
,SYS)
(ENTER)
purges ALL files from Drive
1.
You are not questioned before each file
is removed, as QUERY is specified as NO.
Be
careful with this
command because it produces a blank formatted disk.
PURGE
/BAS:l
(Q=NO)
CEHllID
1-100