Home   MS-DOS Home   A-Z   NS Utilities   Command Syntax

DELTREE

Home >> MS-DOS Reference >> Command Categories >> Directory Management >> DELTREE

Directory Management

Directory Management


Summary
Description
Command Syntax
Comments
Supported DOS versions: MS-DOS 6.0+
How easy to use? Very easy
How safe to use? Potentially very dangerous
How common? Less well known
Internal or external command? External

Description

Deletes the specified directory and all the directories below it.

Command Syntax

DELTREE [/Y] directoryname [directoryname]

Comments

DELTREE can be extremely dangerous if used incorrectly. It removes directories as well as files which makes it harder to undelete them. Do NOT use DELTREE with the following directories unless you are SURE you want to delete them: DELTREE C:\, DELTREE C:\DOS, DELTREE C:\WINDOWS. DELTREE can be useful to delete files or directories with invalid names, such as those containing a space. To do this, place quote marks around the file or directory thus: DELTREE "A Space".
Home Home
MS-DOS MS-DOS Home
A - Z Index A - Z Index

Top of page
Summary
Description
Command Syntax
Comments




Top of page    Home    MS-DOS Home    NS Utilities
Copyright © 2005 Marcus Houlden  |  Copyright and Data Protection

Printed from the NukeSoft MS-DOS Reference. Copyright © 1995 - 2006 Marcus Houlden