24 Sep
I launched command prompt(DOS), and typed “deltree /?” to display all the commands for deltree because I couldn’t remember the deltree parameters. I was quite embarrassed to see the error message “deltree is not recognized as an internal or external command, operable program or batch file.” It seems that the deltree command is no longer being used in Windows 200 and Windows XP.

After a little searching, I found deltree command replacement for Windows 2000 and Windows XP.
Windows 2000 and Windows XP do not have deltree command, but you can emulate it with the RD or RMDIR command.

For example, the following Windows 2000 or Windows XP DOS command deletes the C:\RAYMOND directory and all subdirectories WITHOUT ANY WARNING:
RD C:\RAYMOND /S /Q
/S = Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.
/Q = Quiet mode, do not ask if OK to remove a directory tree with /S.
I remembered back in Windows 98 time, the RD command is used to remove empty directories in MS-DOS. To delete directories with files or directories within them the user must use the deltree command. It looks like Windows 2000 and Windows XP has updated the RD command with the /S option. If you didn’t know, the RD and RMDIR command are internal commands for DOS. You couldn’t find a file rd.exe or rmdir.exe in your system.
DOS is still very useful to me. I get to automate task or even removing spywares or virus by running a DOS batch file.
[tags]rd, rmdir, dos, deltree, batch[/tags]
: Copying this article to your website is strictly NOT allowed. However, if you like this article, you can use the HTML code below to directly link to this article.
6 Must Have Replacement Tools when Fixing a Computer Infected by Virus Upgrade your Windows User Account Control with Smart UAC Replacement Tired of Typing Long File and Folder Names in DOS? Try This… Embed Command Prompt in Explorer to Easily Run Batch or DOS Tools AutoPatcher Alternatives for Offline Windows Update Listing Files Protected by System File Checker SFC in Windows Novell Disable Login Feature in Windows With Network Share Monitoring
Have computer technical problems? Get FREE help from Raymond.CC FORUM
That was a quick help dude.