Command Prompt Using DEL, DELTREE, RENAME and MOVE ©Richard Goldman January 31, 2000
DEL Command (Delete) Internal command that allows you to delete files. First character of name in the directory table is overwritten with a special character. Each cluster in the FAT is set to zero. Syntax DEL [drive:] [path] filename [/P] /P = Prompt before deleting Wildcards can be used Some utility programs may be able to undelete files if they haven’t been overwritten.
To Remove Directories RD (Remove Directory) RD /S DELTREE Directory must be empty first. RD /S Deletes all files and subdirectories at once. Available in Windows 2000 and later. DELTREE Not available in Windows 2000 and later.
REN or RENAME Command Renames files or Subdirectories Can use wildcards Can not move a file or subdirectory with a REN command. (Use the MOVE command) Syntax: REN [drive:] [directoryname1 | filename1] [directoryname2 | filename2] No parameters
Move Command Move files Moves Subdirectories along with their contents Can use wildcards Can rename single a file/subdirectory on a single file/subdirectory move. Can not rename on a global move (using wildcards) Syntax: MOVE source destination
End