beautypg.com

Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 137

background image

Utility Descriptions 5-17

D E L T R E E

The DELTREE command deletes one or more directory trees or individual
files.

Syntax

DELTREE [/Y] [drive:]path [[drive:]path[...]]

Remarks

/Y prevents DELTREE from prompting before deleting.

[

drive:]path indicates the name(s) of the file(s) or directory tree(s) to

delete. Wildcards are allowed.

Examples

Datalight DELTREE deletes one or more directory trees. For example, to
delete all files and directories in the tree C:\TEMP, enter

DELTREE C:\TEMP.

You can also use DELTREE to delete individual files, one at a time, using
wildcards. For example, to delete selected files in the current directory,
enter

DELTREE *.*

DELTREE then prompts you for each file it finds, allowing you to choose
whether to delete them.

Caution: Be careful when using wildcards with DELTREE. DELTREE

deletes all specified files and subdirectories regardless of their
attributes. Multiple files and/or subdirectories may be
specified.