DELTREE deletes files and directories, and all the subdirectories and files in it regardless of whether files are marked as hidden, system, or read-only

Files Recovery Software
Home Contact Details Customer Support Download Demo Products  

 
 

DELTREE

Deletes Files and Directories, and all the Subdirectories and files in it.

Syntax:

To delete a directory and all the subdirectories and files contained therein:

DELTREE [/Y] directory

directory The directory to be deleted.

/Y Suppresses prompts for confirmation before deletion.

To delete all the files and subdirectories but leave the directory itself:

DELTREE [/Y] directory\*.*

To delete a file:

DELTREE [/Y] filename

The DELTREE command deletes all files contained in a directory or subdirectory, regardless of whether files are marked as hidden, system, or read-only.

The DELTREE command supports wildcards, but they should be used with some caution. If you specify a wildcard that matches both directory names and filenames, both the directories and files will be deleted.

Before specifying wildcards with the DELTREE command, use the DIR /A command to view the files and directories you will delete. It is also safest to specify the full path to avoid any surprises from ambiguous specification. Let us see some examples.

To delete the NOTES directory on drive C, including all files and subdirectories of the NOTES directory:

DELTREE c:\notes

To delete all the files and subdirectories in the NOTES directory leaving an empty directory NOTES for future use, and avoiding the prompt for confirmation:

DELTREE /Y c:\notes\*.*

To delete the read-only file recover.doc in the c:\data directory without resetting the attributes:

DELTREE /Y c:\data\recover.doc

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15

Next page
 
 
Data Recovery Book
 
Chapter 1 An Overview of Data Recovery
Chapter 2 Introduction of Hard Disks
Chapter 3 Logical Approach to Disks and OS
Chapter 4 Number Systems
Chapter 5 Introduction of C Programming
Chapter 6 Introduction to Computer Basics
Chapter 7 Necessary DOS Commands
Chapter 8 Disk-BIOS Functions and Interrupts Handling With C
Chapter 9 Handling Large Hard Disks
Chapter 10 Data Recovery From Corrupted Floppy
Chapter 11 Making Backups
Chapter 12 Reading and Modifying MBR with Programming
Chapter 13 Reading and Modifying DBR with Programming
Chapter 14 Programming for “Raw File” Recovery
Chapter 15 Programming for Data Wipers
Chapter 16 Developing more Utilities for Disks
Appendix Glossary of Data Recovery Terms
 
 

 

Pro Data Doctor

Home

Products

Contact Details

Customer Support

Download Demo

Terms and Conditions

 
Pro Data Doctor