Talk:DELTREE

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Computing / Software (Rated Stub-class)
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Stub-Class article Stub  This article has been rated as Stub-Class on the project's quality scale.
 ???  This article has not yet received a rating on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Software.
 
Note icon
This article has been automatically rated by a bot or other tool as Stub-Class because it uses a stub template. Please ensure the assessment is correct before removing the |auto= parameter.

microsoft.com link[edit]

I added the link to MS's site on the command, but I don't feel as if I'm a good enough editor to really put in correct ciations. Perhaps someone could pick up where I left off. --GaidinBDJ (talk) 14:14, 12 December 2008 (UTC)

Sources for rewrite[edit]

  • Version 5.0 [of MSDOS] is easier to use than earlier versions, with a better graphic shell, history facility, and full-screen editor. However, it still lacks a few of the enhanced commands present in DR DOS, such as recursive file deletion, and both still omit such vital operations from the commands line as "move file" and "rename directory."
  • Rubenking, Neil J. (November 19, 1996). "User-to-User". PC Magazine. p. 247. 
  • A trailing "\" in the path removes everything underneath the specified directory but not the directory itself.
  • DELTREE ignores "read-only, hidden, and system attributes".
  • The "Directory Related Commands" are chdir, mkdir, rmdir, xcopy, tree and deltree.
  • The DELTREE command, new in DOS 6.0, make the RD command obsolete.
  • This command removes the directory you specify and everything in it—subdirectories, files and files in subdirectories. In addition, attributes of files in the subdirectories are ignored. You do not need to use ATTRIB to clear attributes such as Read-only or Hidden before you delete them.
  • The /Y parameter is optional. Because DELTREE is a potentially dangerous command, capable of wiping out hundreds of files at a time, DOS normally displays the following message: Delete d:path and all its subdirectories? [Y/N] .... If you use the /Y parameter, however, the message does not appear.
  • Yes, you can recover a directory removed with DelTree using a special file recovery program, but you should use this particular command with caution.
  • Vista doesn't support the DelTree command.
  • DELTREE [/Y] [drive:]path [[drive:]path[...]] Not particularly clear, that....
  • NOTE: Unlike many commands that add, remove, or modify directories, you can specify multiple paths using the DelTree command.
  • In Windows XP/2003, you can obtain this functionality by using the /s switch for the rmdir command.
  • Need cite.
  • The equivalent unix command is sudo rm -rf, but this respects attributes and permissions.
  • External DOS commands are typically located in the C:\DOS directory. They are usually associated with running a program or a task. .... examples ... are DELTREE, ATTRIB, EDIT and MEM. Contrast with internal commands, which are resident in command.com.
  • CASE EXAMPLE (NEW JERSEY 1996): Tim Lloyd, the primary system administrator for Omega Engineering Corporation, was ... fired .... In retaliation, Lloyd executed time-delayed commands on Omega's primary server .... Specifically the method of initiation was a modified version of the DELTREE command ... to delete everything on the drive combined with the PURGE ... command to obliterate the deleted data. .... Experts spent years recovering pices of information from the servers.... The case was litigated as United States v. Lloyd, 269 F.3d 228 (3rd Cir. 201). The modified deltree was for Novell systems. See [1].
  • An ANSI bomb is a sequence of characters, embedded in ASCII text, that causes ANSI.SYS to do something unexpected and potentially catastrophic. .... But a more malevolent incantation could redefine the Enter key on your keyboard to substitute a destructive command, such as DELTREE C:\*.* /Y, for each DOS command you typed!
  • subdirectories were introduced in MS-DOS 2.0; they did not support accessing data files except in the current directory.

(Rewrite) DOS 2.0 Comment[edit]

As for the last comment above: "subdirectories were introduced in MS-DOS 2.0; they did not support accessing data files except in the current directory."

That's not true, and the referenced article doesn't say this, either. It claims only that *older* software -- i.e., software written for DOS 1.x -- wasn't given a way to do this in DOS 2.0 (in contrast to the PATH variable, which did allow older programs to access executable files). The limitation was in the older programs, not in the new DOS; any program that was DOS 2.0-aware could access any file in any directory just fine.

Edited the relevant snippet within the article to reflect this. 79.183.65.10 (talk) 11:30, 16 September 2014 (UTC)

Thanks. Face-smile.svg Codename Lisa (talk) 11:02, 18 September 2014 (UTC)